diff options
Diffstat (limited to 'examples/echo_get/src')
-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}. |