diff options
author | Loïc Hoguin <[email protected]> | 2016-08-10 14:33:43 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-10 14:33:43 +0200 |
commit | ae95e87eb1c352b96b43a431fd4693d7d80a4b64 (patch) | |
tree | efd4eead29a4a6ea9d9ab2952decfda5c10f4ffb /examples/echo_post | |
parent | 00f3ae7d20fab7e1fb5707ac2f35cf1d003f9d39 (diff) | |
download | cowboy-ae95e87eb1c352b96b43a431fd4693d7d80a4b64.tar.gz cowboy-ae95e87eb1c352b96b43a431fd4693d7d80a4b64.tar.bz2 cowboy-ae95e87eb1c352b96b43a431fd4693d7d80a4b64.zip |
Update examples to the new interface
Diffstat (limited to 'examples/echo_post')
-rw-r--r-- | examples/echo_post/src/toppage_handler.erl | 2 |
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 a84bfe5..f52b6d4 100644 --- a/examples/echo_post/src/toppage_handler.erl +++ b/examples/echo_post/src/toppage_handler.erl @@ -12,7 +12,7 @@ init(Req, Opts) -> {ok, Req2, Opts}. maybe_echo(<<"POST">>, true, Req) -> - {ok, PostVals, Req2} = cowboy_req:body_qs(Req), + {ok, PostVals, Req2} = cowboy_req:read_urlencoded_body(Req), Echo = proplists:get_value(<<"echo">>, PostVals), echo(Echo, Req2), Req2; |