diff options
author | Loïc Hoguin <[email protected]> | 2017-01-22 10:50:39 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-01-22 10:50:39 +0100 |
commit | 3e05ab8f82ac69da7c55d1b28284c32ea63186c4 (patch) | |
tree | cc13546e9579d572d7d926aeab73847a4fc56ca5 /test/handlers/resp_h.erl | |
parent | 3b91523a3c84a882dcc83f0591b919a939cb72c2 (diff) | |
download | cowboy-3e05ab8f82ac69da7c55d1b28284c32ea63186c4.tar.gz cowboy-3e05ab8f82ac69da7c55d1b28284c32ea63186c4.tar.bz2 cowboy-3e05ab8f82ac69da7c55d1b28284c32ea63186c4.zip |
Add experimental cowboy_compress_h stream handler
Currently marked as experimental because it can't be tweaked
(just enabled/disabled) and because it is not documented yet.
Diffstat (limited to 'test/handlers/resp_h.erl')
-rw-r--r-- | test/handlers/resp_h.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/handlers/resp_h.erl b/test/handlers/resp_h.erl index 658c5f8..5e6696e 100644 --- a/test/handlers/resp_h.erl +++ b/test/handlers/resp_h.erl @@ -28,7 +28,7 @@ do(<<"set_resp_header">>, Req0, Opts) -> do(<<"set_resp_headers">>, Req0, Opts) -> Req = cowboy_req:set_resp_headers(#{ <<"content-type">> => <<"text/plain">>, - <<"content-encoding">> => <<"gzip">> + <<"content-encoding">> => <<"compress">> }, Req0), {ok, cowboy_req:reply(200, #{}, "OK", Req), Opts}; do(<<"resp_header_defined">>, Req0, Opts) -> @@ -44,7 +44,7 @@ do(<<"resp_headers">>, Req0, Opts) -> Req1 = cowboy_req:set_resp_header(<<"server">>, <<"nginx">>, Req0), Req = cowboy_req:set_resp_headers(#{ <<"content-type">> => <<"text/plain">>, - <<"content-encoding">> => <<"gzip">> + <<"content-encoding">> => <<"compress">> }, Req1), Headers = cowboy_req:resp_headers(Req), true = maps:is_key(<<"server">>, Headers), |