aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/chunked_handler.erl2
-rw-r--r--test/http_handler_init_shutdown.erl2
-rw-r--r--test/http_handler_long_polling.erl2
-rw-r--r--test/websocket_handler_init_shutdown.erl2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/chunked_handler.erl b/test/chunked_handler.erl
index 97ce27c..d246d51 100644
--- a/test/chunked_handler.erl
+++ b/test/chunked_handler.erl
@@ -8,7 +8,7 @@ init({_Transport, http}, Req, _Opts) ->
{ok, Req, undefined}.
handle(Req, State) ->
- {ok, Req2} = cowboy_http_req:chunked_reply(200, [], Req),
+ {ok, Req2} = cowboy_http_req:chunked_reply(200, Req),
cowboy_http_req:chunk("chunked_handler\r\n", Req2),
cowboy_http_req:chunk("works fine!", Req2),
{ok, Req2, State}.
diff --git a/test/http_handler_init_shutdown.erl b/test/http_handler_init_shutdown.erl
index a5930ca..732ca1d 100644
--- a/test/http_handler_init_shutdown.erl
+++ b/test/http_handler_init_shutdown.erl
@@ -6,7 +6,7 @@
init({_Transport, http}, Req, _Opts) ->
Req2 = cowboy_http_req:reply(<<"666 Init Shutdown Testing">>,
- [{'Connection', <<"close">>}], [], Req),
+ [{'Connection', <<"close">>}], Req),
{shutdown, Req2, undefined}.
handle(Req, State) ->
diff --git a/test/http_handler_long_polling.erl b/test/http_handler_long_polling.erl
index 374e244..e838619 100644
--- a/test/http_handler_long_polling.erl
+++ b/test/http_handler_long_polling.erl
@@ -12,7 +12,7 @@ handle(_Req, _State) ->
exit(badarg).
info(timeout, Req, 0) ->
- {ok, Req2} = cowboy_http_req:reply(102, [], [], Req),
+ {ok, Req2} = cowboy_http_req:reply(102, Req),
{ok, Req2, 0};
info(timeout, Req, State) ->
erlang:send_after(500, self(), timeout),
diff --git a/test/websocket_handler_init_shutdown.erl b/test/websocket_handler_init_shutdown.erl
index ad76336..2d52cbd 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),
+ Req2 = cowboy_http_req:reply(403, Req),
{shutdown, Req2}.
websocket_handle(_Frame, _Req, _State) ->