0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix a websocket test handler that was throwing an unwanted error

The test still worked because we expect the websocket connection
to fail, but it didn't fail exactly the way we wanted it to.
This commit is contained in:
Loïc Hoguin 2011-11-28 09:14:07 +01:00
parent 64a40cb479
commit ad87fee0af

View file

@ -17,7 +17,7 @@ terminate(_Req, _State) ->
exit(badarg).
websocket_init(_TransportName, Req, _Opts) ->
Req2 = cowboy_http_req:reply(403, Req),
{ok, Req2} = cowboy_http_req:reply(403, Req),
{shutdown, Req2}.
websocket_handle(_Frame, _Req, _State) ->