0
Fork 0
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:
Loïc Hoguin 2025-02-11 14:12:04 +01:00
parent e8a1868033
commit 71b4147363
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 4 additions and 1 deletions

View file

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