aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ssl_hello_world/src/toppage_handler.erl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ssl_hello_world/src/toppage_handler.erl')
-rw-r--r--examples/ssl_hello_world/src/toppage_handler.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/ssl_hello_world/src/toppage_handler.erl b/examples/ssl_hello_world/src/toppage_handler.erl
index e8e672e..eb95bf3 100644
--- a/examples/ssl_hello_world/src/toppage_handler.erl
+++ b/examples/ssl_hello_world/src/toppage_handler.erl
@@ -6,7 +6,7 @@
-export([init/2]).
init(Req, Opts) ->
- Req2 = cowboy_req:reply(200, [
- {<<"content-type">>, <<"text/plain">>}
- ], <<"Hello world!">>, Req),
- {ok, Req2, Opts}.
+ cowboy_req:reply(200, #{
+ <<"content-type">> => <<"text/plain">>
+ }, <<"Hello world!">>, Req),
+ {ok, Req, Opts}.