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:
parent
aea172857f
commit
37d069cd51
2 changed files with 13 additions and 13 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue