untested-cleanup

This commit is contained in:
arpruss 2015-09-27 01:36:53 -05:00
parent 0b203d8bca
commit d2e8dca599

View File

@ -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"..