diff options
author | Loïc Hoguin <[email protected]> | 2012-09-15 12:56:45 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-09-15 12:56:45 +0200 |
commit | 9b5cbb5000e564352afbd762c4ab0406250f147f (patch) | |
tree | 27d079c4dd9ad4dd30b5972ca5f4d09e0c4401e1 /src/cowboy_websocket.erl | |
parent | d9e76d59a1cb47ec47bda5bf2a3e48a2da39ae45 (diff) | |
download | cowboy-9b5cbb5000e564352afbd762c4ab0406250f147f.tar.gz cowboy-9b5cbb5000e564352afbd762c4ab0406250f147f.tar.bz2 cowboy-9b5cbb5000e564352afbd762c4ab0406250f147f.zip |
Remove two unneeded Req modifications
Diffstat (limited to 'src/cowboy_websocket.erl')
-rw-r--r-- | src/cowboy_websocket.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl index cdfcb91..8d40b73 100644 --- a/src/cowboy_websocket.erl +++ b/src/cowboy_websocket.erl @@ -164,7 +164,7 @@ websocket_handshake(State=#state{version=0, origin=Origin, [{<<"Upgrade">>, <<"WebSocket">>}, {<<"Sec-Websocket-Location">>, Location}, {<<"Sec-Websocket-Origin">>, Origin}], - Req#http_req{resp_state=waiting}), + Req), %% Flush the resp_sent message before moving on. receive {cowboy_req, resp_sent} -> ok after 0 -> ok end, %% We replied with a proper response. Proxies should be happy enough, @@ -191,7 +191,7 @@ websocket_handshake(State=#state{challenge=Challenge}, 101, [{<<"Upgrade">>, <<"websocket">>}, {<<"Sec-Websocket-Accept">>, Challenge}], - Req#http_req{resp_state=waiting}), + Req), %% Flush the resp_sent message before moving on. receive {cowboy_req, resp_sent} -> ok after 0 -> ok end, handler_before_loop(State#state{messages=Transport:messages()}, |