aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ssl_hello_world/src/toppage_handler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-09-08 20:17:25 +0200
committerLoïc Hoguin <[email protected]>2013-09-08 20:17:25 +0200
commit24a22fa657af8398c963889d0bf08a904c96ec8c (patch)
tree0f3e2b39c1e700dadbc7afde176fb1f6600e30e0 /examples/ssl_hello_world/src/toppage_handler.erl
parent1f8119ef311911c3bc4567a198abd0237db6710d (diff)
downloadcowboy-24a22fa657af8398c963889d0bf08a904c96ec8c.tar.gz
cowboy-24a22fa657af8398c963889d0bf08a904c96ec8c.tar.bz2
cowboy-24a22fa657af8398c963889d0bf08a904c96ec8c.zip
Convert the SSL hello world example to a release
Diffstat (limited to 'examples/ssl_hello_world/src/toppage_handler.erl')
-rw-r--r--examples/ssl_hello_world/src/toppage_handler.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/ssl_hello_world/src/toppage_handler.erl b/examples/ssl_hello_world/src/toppage_handler.erl
index 4124b5a..f0fa806 100644
--- a/examples/ssl_hello_world/src/toppage_handler.erl
+++ b/examples/ssl_hello_world/src/toppage_handler.erl
@@ -11,7 +11,9 @@ init(_Transport, Req, []) ->
{ok, Req, undefined}.
handle(Req, State) ->
- {ok, Req2} = cowboy_req:reply(200, [], <<"Hello world!">>, Req),
+ {ok, Req2} = cowboy_req:reply(200, [
+ {<<"content-type">>, <<"text/plain">>}
+ ], <<"Hello world!">>, Req),
{ok, Req2, State}.
terminate(_Reason, _Req, _State) ->