0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 13:10:24 +00:00

Fix many rfc7230 tests that were echoing the URI

This commit is contained in:
Loïc Hoguin 2017-11-29 18:07:23 +01:00
parent aea172857f
commit 37d069cd51
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 13 additions and 13 deletions

View file

@ -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) ->