mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Improve the set_resp_headers_list test
This commit is contained in:
parent
e8a1868033
commit
71b4147363
2 changed files with 4 additions and 1 deletions
|
@ -46,7 +46,9 @@ do(<<"set_resp_headers">>, Req0, Opts) ->
|
|||
do(<<"set_resp_headers_list">>, Req0, Opts) ->
|
||||
Req = cowboy_req:set_resp_headers([
|
||||
{<<"content-type">>, <<"text/plain">>},
|
||||
{<<"content-encoding">>, <<"compress">>}
|
||||
{<<"test-header">>, <<"one">>},
|
||||
{<<"content-encoding">>, <<"compress">>},
|
||||
{<<"test-header">>, <<"two">>}
|
||||
], Req0),
|
||||
{ok, cowboy_req:reply(200, #{}, "OK", Req), Opts};
|
||||
do(<<"set_resp_headers_cookie">>, Req0, Opts) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue