diff options
Diffstat (limited to 'examples/echo_get/src')
-rw-r--r-- | examples/echo_get/src/toppage_handler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/echo_get/src/toppage_handler.erl b/examples/echo_get/src/toppage_handler.erl index a8666dc..6d914ec 100644 --- a/examples/echo_get/src/toppage_handler.erl +++ b/examples/echo_get/src/toppage_handler.erl @@ -16,9 +16,9 @@ handle(Req, State) -> {ok, Req4} = echo(Method, Echo, Req3), {ok, Req4, State}. -echo('GET', undefined, Req) -> +echo(<<"GET">>, undefined, Req) -> cowboy_req:reply(400, [], <<"Missing echo parameter.">>, Req); -echo('GET', Echo, Req) -> +echo(<<"GET">>, Echo, Req) -> cowboy_req:reply(200, [{<<"Content-Encoding">>, <<"utf-8">>}], Echo, Req); echo(_, _, Req) -> |