mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
Update websocket.lua
根据Issue(https://github.com/cloudwu/skynet/issues/1163#issue-587403602)提出修改建议。
This commit is contained in:
@@ -98,7 +98,7 @@ local function read_handshake(self)
|
||||
return 400, "host Required"
|
||||
end
|
||||
|
||||
if not header["connection"] or header["connection"]:lower() ~= "upgrade" then
|
||||
if not header["connection"] or not header["connection"]:lower():find("upgrade", 1,true) then
|
||||
return 400, "Connection must Upgrade"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user