aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-12-05 10:21:41 +0100
committerLoïc Hoguin <[email protected]>2012-12-05 13:43:25 +0100
commitdb6b1596ae69529207ca66a9a8f3eaf0779109f0 (patch)
tree92c97d7e06e5b004113cea7b18ba92cfd0c7f738 /examples
parent8bc6bde62f92d77e44f649d82bc899f97a641c06 (diff)
downloadcowboy-db6b1596ae69529207ca66a9a8f3eaf0779109f0.tar.gz
cowboy-db6b1596ae69529207ca66a9a8f3eaf0779109f0.tar.bz2
cowboy-db6b1596ae69529207ca66a9a8f3eaf0779109f0.zip
Make a few more missing headers lowercase
Diffstat (limited to 'examples')
-rw-r--r--examples/echo_get/src/toppage_handler.erl2
-rw-r--r--examples/echo_post/src/toppage_handler.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/echo_get/src/toppage_handler.erl b/examples/echo_get/src/toppage_handler.erl
index 6d914ec..86433cb 100644
--- a/examples/echo_get/src/toppage_handler.erl
+++ b/examples/echo_get/src/toppage_handler.erl
@@ -20,7 +20,7 @@ echo(<<"GET">>, undefined, Req) ->
cowboy_req:reply(400, [], <<"Missing echo parameter.">>, Req);
echo(<<"GET">>, Echo, Req) ->
cowboy_req:reply(200,
- [{<<"Content-Encoding">>, <<"utf-8">>}], Echo, Req);
+ [{<<"content-encoding">>, <<"utf-8">>}], Echo, Req);
echo(_, _, Req) ->
%% Method not allowed.
cowboy_req:reply(405, Req).
diff --git a/examples/echo_post/src/toppage_handler.erl b/examples/echo_post/src/toppage_handler.erl
index 69aeb9f..808ba8e 100644
--- a/examples/echo_post/src/toppage_handler.erl
+++ b/examples/echo_post/src/toppage_handler.erl
@@ -30,7 +30,7 @@ echo(undefined, Req) ->
cowboy_req:reply(400, [], <<"Missing echo parameter.">>, Req);
echo(Echo, Req) ->
cowboy_req:reply(200,
- [{<<"Content-Encoding">>, <<"utf-8">>}], Echo, Req).
+ [{<<"content-encoding">>, <<"utf-8">>}], Echo, Req).
terminate(_Req, _State) ->
ok.