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