mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Move another test from the old HTTP test suite
This commit is contained in:
parent
dc240adc1e
commit
6058800abb
3 changed files with 21 additions and 7 deletions
|
@ -30,6 +30,9 @@ do(<<"set_resp_cookie4">>, Req0, Opts) ->
|
|||
do(<<"set_resp_header">>, Req0, Opts) ->
|
||||
Req = cowboy_req:set_resp_header(<<"content-type">>, <<"text/plain">>, Req0),
|
||||
{ok, cowboy_req:reply(200, #{}, "OK", Req), Opts};
|
||||
do(<<"set_resp_header_server">>, Req0, Opts) ->
|
||||
Req = cowboy_req:set_resp_header(<<"server">>, <<"nginx">>, Req0),
|
||||
{ok, cowboy_req:reply(200, #{}, "OK", Req), Opts};
|
||||
do(<<"set_resp_headers">>, Req0, Opts) ->
|
||||
Req = cowboy_req:set_resp_headers(#{
|
||||
<<"content-type">> => <<"text/plain">>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue