aboutsummaryrefslogtreecommitdiffstats
path: root/examples/echo_post/src/toppage_handler.erl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/echo_post/src/toppage_handler.erl')
-rw-r--r--examples/echo_post/src/toppage_handler.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/echo_post/src/toppage_handler.erl b/examples/echo_post/src/toppage_handler.erl
index 808ba8e..21e1dc6 100644
--- a/examples/echo_post/src/toppage_handler.erl
+++ b/examples/echo_post/src/toppage_handler.erl
@@ -12,9 +12,9 @@ init(_Transport, Req, []) ->
handle(Req, State) ->
{Method, Req2} = cowboy_req:method(Req),
- {HasBody, Req3} = cowboy_req:has_body(Req2),
- {ok, Req4} = maybe_echo(Method, HasBody, Req3),
- {ok, Req4, State}.
+ HasBody = cowboy_req:has_body(Req2),
+ {ok, Req3} = maybe_echo(Method, HasBody, Req2),
+ {ok, Req3, State}.
maybe_echo(<<"POST">>, true, Req) ->
{ok, PostVals, Req2} = cowboy_req:body_qs(Req),