diff options
author | Loïc Hoguin <[email protected]> | 2017-12-07 22:12:34 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-12-07 22:33:52 +0100 |
commit | b000d53855592c5470a8c2f2dcebc4915ec4d4d1 (patch) | |
tree | 355923b7751c5fe943de5f028b1e96cda90e6604 /test/cowboy_test.erl | |
parent | c2b813684edca59d8b77c33f2632ef243bed7449 (diff) | |
download | cowboy-b000d53855592c5470a8c2f2dcebc4915ec4d4d1.tar.gz cowboy-b000d53855592c5470a8c2f2dcebc4915ec4d4d1.tar.bz2 cowboy-b000d53855592c5470a8c2f2dcebc4915ec4d4d1.zip |
Add more rfc7231 tests and a new max_skip_body_length option
The option controls how much body we accept to skip for HTTP/1.1
connections when the user code did not consume the body fully.
It defaults to 1MB.
Diffstat (limited to 'test/cowboy_test.erl')
-rw-r--r-- | test/cowboy_test.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/cowboy_test.erl b/test/cowboy_test.erl index 8bd808a..f130451 100644 --- a/test/cowboy_test.erl +++ b/test/cowboy_test.erl @@ -66,40 +66,40 @@ common_groups(Tests) -> init_common_groups(Name = http, Config, Mod) -> init_http(Name, #{ env => #{dispatch => Mod:init_dispatch(Config)} - }, Config); + }, [{flavor, vanilla}|Config]); init_common_groups(Name = https, Config, Mod) -> init_https(Name, #{ env => #{dispatch => Mod:init_dispatch(Config)} - }, Config); + }, [{flavor, vanilla}|Config]); init_common_groups(Name = h2, Config, Mod) -> init_http2(Name, #{ env => #{dispatch => Mod:init_dispatch(Config)} - }, Config); + }, [{flavor, vanilla}|Config]); init_common_groups(Name = h2c, Config, Mod) -> Config1 = init_http(Name, #{ env => #{dispatch => Mod:init_dispatch(Config)} - }, Config), + }, [{flavor, vanilla}|Config]), lists:keyreplace(protocol, 1, Config1, {protocol, http2}); init_common_groups(Name = http_compress, Config, Mod) -> init_http(Name, #{ env => #{dispatch => Mod:init_dispatch(Config)}, stream_handlers => [cowboy_compress_h, cowboy_stream_h] - }, Config); + }, [{flavor, compress}|Config]); init_common_groups(Name = https_compress, Config, Mod) -> init_https(Name, #{ env => #{dispatch => Mod:init_dispatch(Config)}, stream_handlers => [cowboy_compress_h, cowboy_stream_h] - }, Config); + }, [{flavor, compress}|Config]); init_common_groups(Name = h2_compress, Config, Mod) -> init_http2(Name, #{ env => #{dispatch => Mod:init_dispatch(Config)}, stream_handlers => [cowboy_compress_h, cowboy_stream_h] - }, Config); + }, [{flavor, compress}|Config]); init_common_groups(Name = h2c_compress, Config, Mod) -> Config1 = init_http(Name, #{ env => #{dispatch => Mod:init_dispatch(Config)}, stream_handlers => [cowboy_compress_h, cowboy_stream_h] - }, Config), + }, [{flavor, compress}|Config]), lists:keyreplace(protocol, 1, Config1, {protocol, http2}). %% Support functions for testing using Gun. |