aboutsummaryrefslogtreecommitdiffstats
path: root/examples/echo_post
diff options
context:
space:
mode:
Diffstat (limited to 'examples/echo_post')
-rw-r--r--examples/echo_post/src/toppage_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/echo_post/src/toppage_handler.erl b/examples/echo_post/src/toppage_handler.erl
index 38fcbce..f8659c9 100644
--- a/examples/echo_post/src/toppage_handler.erl
+++ b/examples/echo_post/src/toppage_handler.erl
@@ -17,7 +17,7 @@ handle(Req, State) ->
{ok, Req4, State}.
maybe_echo('POST', true, Req) ->
- {PostVals, Req2} = cowboy_req:body_qs(Req),
+ {ok, PostVals, Req2} = cowboy_req:body_qs(Req),
Echo = proplists:get_value(<<"echo">>, PostVals),
echo(Echo, Req2);
maybe_echo('POST', false, Req) ->