修复ws连接失败时content-length解析错误

This commit is contained in:
MrZ626
2021-03-28 03:36:16 +08:00
parent b740072209
commit 467eee308f

View File

@@ -79,7 +79,7 @@ do--Connect
code=l:find(" "); code=l:sub(code+1,code+3)
repeat
l=SOCK:receive("*l")
if not ctLen and l:find"Length"then
if not ctLen and l:find"length"then
ctLen=tonumber(l:match"%d+")
end
until l==""