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:
parent
64a40cb479
commit
ad87fee0af
1 changed files with 1 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue