diff options
author | Loïc Hoguin <[email protected]> | 2014-10-04 13:21:16 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-10-04 13:21:16 +0300 |
commit | 21d9ebe33b3eaf65a4118fc5c3e7364e64d63769 (patch) | |
tree | 5a679864c47cd50f55ad06831a36a92a03d3ad59 /examples/echo_get | |
parent | 4bc8e330fa239d1ade18a5d75ea018f1a954bfb3 (diff) | |
download | cowboy-21d9ebe33b3eaf65a4118fc5c3e7364e64d63769.tar.gz cowboy-21d9ebe33b3eaf65a4118fc5c3e7364e64d63769.tar.bz2 cowboy-21d9ebe33b3eaf65a4118fc5c3e7364e64d63769.zip |
Reverse the order of arguments of match_* functions
Wasn't following the same order as the rest of the module.
Diffstat (limited to 'examples/echo_get')
-rw-r--r-- | examples/echo_get/src/toppage_handler.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/echo_get/src/toppage_handler.erl b/examples/echo_get/src/toppage_handler.erl index a7c8d7f..800284e 100644 --- a/examples/echo_get/src/toppage_handler.erl +++ b/examples/echo_get/src/toppage_handler.erl @@ -7,7 +7,7 @@ init(Req, Opts) -> Method = cowboy_req:method(Req), - #{echo := Echo} = cowboy_req:match_qs(Req, [echo]), + #{echo := Echo} = cowboy_req:match_qs([echo], Req), Req2 = echo(Method, Echo, Req), {ok, Req2, Opts}. |