aboutsummaryrefslogtreecommitdiffstats
path: root/test/websocket_handler_init_shutdown.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/websocket_handler_init_shutdown.erl')
-rw-r--r--test/websocket_handler_init_shutdown.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/websocket_handler_init_shutdown.erl b/test/websocket_handler_init_shutdown.erl
index 2d52cbd..aa9e056 100644
--- a/test/websocket_handler_init_shutdown.erl
+++ b/test/websocket_handler_init_shutdown.erl
@@ -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) ->