aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/resp_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-21 10:47:31 +0100
committerLoïc Hoguin <[email protected]>2018-11-21 10:47:31 +0100
commit6058800abb409dfc9074eecf7d594d109891c7e7 (patch)
treed605c07d29c9686f3da66766dcc1e18a02f15217 /test/handlers/resp_h.erl
parentdc240adc1edf70d9d4aad101ae9d40acdacff3c2 (diff)
downloadcowboy-6058800abb409dfc9074eecf7d594d109891c7e7.tar.gz
cowboy-6058800abb409dfc9074eecf7d594d109891c7e7.tar.bz2
cowboy-6058800abb409dfc9074eecf7d594d109891c7e7.zip
Move another test from the old HTTP test suite
Diffstat (limited to 'test/handlers/resp_h.erl')
-rw-r--r--test/handlers/resp_h.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/handlers/resp_h.erl b/test/handlers/resp_h.erl
index 1c587ce..5e5e766 100644
--- a/test/handlers/resp_h.erl
+++ b/test/handlers/resp_h.erl
@@ -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">>,