修复ws连接失败时content-length解析错误
This commit is contained in:
@@ -79,7 +79,7 @@ do--Connect
|
|||||||
code=l:find(" "); code=l:sub(code+1,code+3)
|
code=l:find(" "); code=l:sub(code+1,code+3)
|
||||||
repeat
|
repeat
|
||||||
l=SOCK:receive("*l")
|
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+")
|
ctLen=tonumber(l:match"%d+")
|
||||||
end
|
end
|
||||||
until l==""
|
until l==""
|
||||||
|
|||||||
Reference in New Issue
Block a user