aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/websocket_handler.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/websocket_handler.erl b/test/websocket_handler.erl
index 4ba2a67..0cfc8f3 100644
--- a/test/websocket_handler.erl
+++ b/test/websocket_handler.erl
@@ -18,7 +18,8 @@ terminate(_Req, _State) ->
websocket_init(_TransportName, Req, _Opts) ->
erlang:start_timer(1000, self(), <<"websocket_init">>),
- {ok, Req, undefined}.
+ Req2 = cowboy_http_req:compact(Req),
+ {ok, Req2, undefined}.
websocket_handle({text, Data}, Req, State) ->
{reply, {text, Data}, Req, State};