mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
bug fixed
This commit is contained in:
@@ -119,6 +119,7 @@ local function read_handshake(self)
|
||||
local sw_protocol = header["sec-websocket-protocol"]
|
||||
local sub_pro = ""
|
||||
if sw_protocol then
|
||||
local has_chat = false
|
||||
for sub_protocol in string.gmatch(sw_protocol, "[^%s,]+") do
|
||||
if sub_protocol == "chat" then
|
||||
sub_pro = "Sec-WebSocket-Protocol: chat\r\n"
|
||||
|
||||
Reference in New Issue
Block a user