aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/echo_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-11-29 18:07:23 +0100
committerLoïc Hoguin <[email protected]>2017-11-29 18:07:23 +0100
commit37d069cd516448712c1793d376dfb4638ec41e6a (patch)
tree3cb6d294123366b7a1aa1952525d61a5bb32f5e4 /test/handlers/echo_h.erl
parentaea172857fe69ea4e9f3d5c74781df2f40381d7f (diff)
downloadcowboy-37d069cd516448712c1793d376dfb4638ec41e6a.tar.gz
cowboy-37d069cd516448712c1793d376dfb4638ec41e6a.tar.bz2
cowboy-37d069cd516448712c1793d376dfb4638ec41e6a.zip
Fix many rfc7230 tests that were echoing the URI
Diffstat (limited to 'test/handlers/echo_h.erl')
-rw-r--r--test/handlers/echo_h.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/handlers/echo_h.erl b/test/handlers/echo_h.erl
index 04c3cf5..a2ab31b 100644
--- a/test/handlers/echo_h.erl
+++ b/test/handlers/echo_h.erl
@@ -50,7 +50,7 @@ echo(<<"uri">>, Req, Opts) ->
[<<"no-qs">>] -> cowboy_req:uri(Req, #{qs => undefined});
[<<"no-path">>] -> cowboy_req:uri(Req, #{path => undefined, qs => undefined});
[<<"set-port">>] -> cowboy_req:uri(Req, #{port => 123});
- [] -> cowboy_req:uri(Req)
+ _ -> cowboy_req:uri(Req)
end,
{ok, cowboy_req:reply(200, #{}, Value, Req), Opts};
echo(<<"match">>, Req, Opts) ->