diff options
author | Loïc Hoguin <[email protected]> | 2018-11-21 10:47:31 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-11-21 10:47:31 +0100 |
commit | 6058800abb409dfc9074eecf7d594d109891c7e7 (patch) | |
tree | d605c07d29c9686f3da66766dcc1e18a02f15217 /test/handlers | |
parent | dc240adc1edf70d9d4aad101ae9d40acdacff3c2 (diff) | |
download | cowboy-6058800abb409dfc9074eecf7d594d109891c7e7.tar.gz cowboy-6058800abb409dfc9074eecf7d594d109891c7e7.tar.bz2 cowboy-6058800abb409dfc9074eecf7d594d109891c7e7.zip |
Move another test from the old HTTP test suite
Diffstat (limited to 'test/handlers')
-rw-r--r-- | test/handlers/resp_h.erl | 3 |
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">>, |