We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5ef817 + a1985da commit 8f95f65Copy full SHA for 8f95f65
src/websocket/handshake.lua
@@ -87,10 +87,10 @@ local accept_upgrade = function(request,protocols)
87
'HTTP/1.1 101 Switching Protocols',
88
'Upgrade: websocket',
89
'Connection: '..headers['connection'],
90
- string.format('Sec-Websocket-Accept: %s',sec_websocket_accept(headers['sec-websocket-key'])),
+ string.format('Sec-WebSocket-Accept: %s',sec_websocket_accept(headers['sec-websocket-key'])),
91
}
92
if prot then
93
- tinsert(lines,string.format('Sec-Websocket-Protocol: %s',prot))
+ tinsert(lines,string.format('Sec-WebSocket-Protocol: %s',prot))
94
end
95
tinsert(lines,'\r\n')
96
return table.concat(lines,'\r\n'),prot
0 commit comments