untested-cleanup
This commit is contained in:
parent
0b203d8bca
commit
d2e8dca599
@ -607,7 +607,7 @@ function handle_websocket_header(source,line)
|
||||
if line == "" then
|
||||
if source.ws.isWebsocket and source.ws.key then
|
||||
local new_key = tools.base64.encode(tools.sha1(source.ws.key .. '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'))
|
||||
source.ws = {frame=""}
|
||||
source.ws = {}
|
||||
local response = "HTTP/1.1 101 Switching Protocols\r\n"..
|
||||
"Upgrade: websocket\r\n"..
|
||||
"Connection: Upgrade\r\n"..
|
||||
|
Loading…
x
Reference in New Issue
Block a user