diff options
author | Loïc Hoguin <[email protected]> | 2011-10-19 18:50:06 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-10-19 18:50:06 +0200 |
commit | 97df2a2d797818771aedff281c153d082470f7d2 (patch) | |
tree | cde7469e8dc50e42fd05ba8aae176c27c1950377 | |
parent | 1e7338bdd4768123da177895ec6c91d3dabb7ca9 (diff) | |
download | cowboy-97df2a2d797818771aedff281c153d082470f7d2.tar.gz cowboy-97df2a2d797818771aedff281c153d082470f7d2.tar.bz2 cowboy-97df2a2d797818771aedff281c153d082470f7d2.zip |
Fix the init_shutdown test
-rw-r--r-- | test/http_handler_init_shutdown.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http_handler_init_shutdown.erl b/test/http_handler_init_shutdown.erl index 732ca1d..ac63b44 100644 --- a/test/http_handler_init_shutdown.erl +++ b/test/http_handler_init_shutdown.erl @@ -5,12 +5,12 @@ -export([init/3, handle/2, terminate/2]). init({_Transport, http}, Req, _Opts) -> - Req2 = cowboy_http_req:reply(<<"666 Init Shutdown Testing">>, + {ok, Req2} = cowboy_http_req:reply(<<"666 Init Shutdown Testing">>, [{'Connection', <<"close">>}], Req), {shutdown, Req2, undefined}. handle(Req, State) -> - Req2 = cowboy_http_req:reply(200, [], "Hello world!", Req), + {ok, Req2} = cowboy_http_req:reply(200, [], "Hello world!", Req), {ok, Req2, State}. terminate(_Req, _State) -> |