mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Add some todos
This commit is contained in:
parent
4e85ad76a0
commit
ad9ab51648
4 changed files with 6 additions and 1 deletions
|
@ -172,6 +172,7 @@ websocket_handshake(State=#state{key=Key},
|
|||
Req=#{pid := Pid, streamid := StreamID}, HandlerState, Env) ->
|
||||
Challenge = base64:encode(crypto:hash(sha,
|
||||
<< Key/binary, "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" >>)),
|
||||
%% @todo We don't want date and server headers.
|
||||
Headers = cowboy_req:response_headers(#{
|
||||
<<"connection">> => <<"Upgrade">>,
|
||||
<<"upgrade">> => <<"websocket">>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue