aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/http_SUITE.erl8
-rw-r--r--test/http_handler_init_shutdown.erl2
-rw-r--r--test/http_handler_set_resp.erl4
3 files changed, 7 insertions, 7 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index af1e9cd..a7e49f9 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -218,11 +218,11 @@ init_dispatch(Config) ->
{[<<"init_shutdown">>], http_handler_init_shutdown, []},
{[<<"long_polling">>], http_handler_long_polling, []},
{[<<"headers">>, <<"dupe">>], http_handler,
- [{headers, [{<<"Connection">>, <<"close">>}]}]},
+ [{headers, [{<<"connection">>, <<"close">>}]}]},
{[<<"set_resp">>, <<"header">>], http_handler_set_resp,
- [{headers, [{<<"Vary">>, <<"Accept">>}]}]},
+ [{headers, [{<<"vary">>, <<"Accept">>}]}]},
{[<<"set_resp">>, <<"overwrite">>], http_handler_set_resp,
- [{headers, [{<<"Server">>, <<"DesireDrive/1.0">>}]}]},
+ [{headers, [{<<"server">>, <<"DesireDrive/1.0">>}]}]},
{[<<"set_resp">>, <<"body">>], http_handler_set_resp,
[{body, <<"A flameless dance does not equal a cycle">>}]},
{[<<"stream_body">>, <<"set_resp">>], http_handler_stream_body,
@@ -599,7 +599,7 @@ onrequest_reply(Config) ->
onrequest_hook(Req) ->
case cowboy_req:qs_val(<<"reply">>, Req) of
{undefined, Req2} ->
- cowboy_req:set_resp_header('Server', <<"Serenity">>, Req2);
+ cowboy_req:set_resp_header(<<"server">>, <<"Serenity">>, Req2);
{_, Req2} ->
{ok, Req3} = cowboy_req:reply(
200, [], <<"replied!">>, Req2),
diff --git a/test/http_handler_init_shutdown.erl b/test/http_handler_init_shutdown.erl
index c26fa97..edea1a0 100644
--- a/test/http_handler_init_shutdown.erl
+++ b/test/http_handler_init_shutdown.erl
@@ -6,7 +6,7 @@
init({_Transport, http}, Req, _Opts) ->
{ok, Req2} = cowboy_req:reply(<<"666 Init Shutdown Testing">>,
- [{'Connection', <<"close">>}], Req),
+ [{<<"connection">>, <<"close">>}], Req),
{shutdown, Req2, undefined}.
handle(Req, State) ->
diff --git a/test/http_handler_set_resp.erl b/test/http_handler_set_resp.erl
index 806bca8..70ddf79 100644
--- a/test/http_handler_set_resp.erl
+++ b/test/http_handler_set_resp.erl
@@ -11,12 +11,12 @@ init({_Transport, http}, Req, Opts) ->
cowboy_req:set_resp_header(Name, Value, R)
end, Req, Headers),
Req3 = cowboy_req:set_resp_body(Body, Req2),
- Req4 = cowboy_req:set_resp_header(<<"X-Cowboy-Test">>, <<"ok">>, Req3),
+ Req4 = cowboy_req:set_resp_header(<<"x-cowboy-test">>, <<"ok">>, Req3),
Req5 = cowboy_req:set_resp_cookie(<<"cake">>, <<"lie">>, [], Req4),
{ok, Req5, undefined}.
handle(Req, State) ->
- case cowboy_req:has_resp_header(<<"X-Cowboy-Test">>, Req) of
+ case cowboy_req:has_resp_header(<<"x-cowboy-test">>, Req) of
false -> {ok, Req, State};
true ->
case cowboy_req:has_resp_body(Req) of