aboutsummaryrefslogtreecommitdiffstats
path: root/examples/echo_post/src/toppage_handler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-16 03:51:07 +0200
committerLoïc Hoguin <[email protected]>2012-09-17 13:56:58 +0200
commit8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63 (patch)
tree916b1c238ce6dea4652e7b50341c37128ba633b2 /examples/echo_post/src/toppage_handler.erl
parente13ab806eaadd40c72145b5783c7727f2ed88d14 (diff)
downloadcowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.tar.gz
cowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.tar.bz2
cowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.zip
Improve consistency of return types for cowboy_req API
The signature of parse_header, body_qs, multipart_data and the set_resp_* functions has changed. See the cowboy_req module edoc for more details.
Diffstat (limited to 'examples/echo_post/src/toppage_handler.erl')
-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) ->