0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Cowlib 2.11.1

This commit is contained in:
Jose M Perez 2021-10-07 14:21:49 +02:00
parent 2a08250499
commit 4922ddc474
4 changed files with 11 additions and 3 deletions

View file

@ -15,7 +15,7 @@ CT_OPTS += -ct_hooks cowboy_ct_hook [] # -boot start_sasl
LOCAL_DEPS = crypto
DEPS = cowlib ranch
dep_cowlib = git https://github.com/ninenines/cowlib 2.11.0
dep_cowlib = git https://github.com/ninenines/cowlib 2.11.1
dep_ranch = git https://github.com/ninenines/ranch 1.8.0
DOC_DEPS = asciideck

View file

@ -32,7 +32,7 @@ Cowboy 2.9 requires Erlang/OTP 22.0 or greater.
* Update Ranch to 1.8.0.
* Update Cowlib to 2.11.0.
* Update Cowlib to 2.11.1.
=== Bugs fixed

View file

@ -1,4 +1,4 @@
{deps, [
{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.11.0"}},{ranch,".*",{git,"https://github.com/ninenines/ranch","1.8.0"}}
{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.11.1"}},{ranch,".*",{git,"https://github.com/ninenines/ranch","1.8.0"}}
]}.
{erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard,warn_missing_spec,warn_untyped_record]}.

View file

@ -247,6 +247,14 @@ ws_deflate_opts_client_max_window_bits_override(Config) ->
= lists:keyfind("sec-websocket-extensions", 1, Headers2),
ok.
ws_deflate_opts_client_max_window_bits_only_in_server(Config) ->
doc("Handler does not support compression if configured with client "
"max window bits less than 15 when client does not provide the option."),
{ok, _, Headers} = do_handshake("/ws_deflate_opts?client_max_window_bits",
"Sec-WebSocket-Extensions: permessage-deflate\r\n", Config),
false = lists:keyfind("sec-websocket-extensions", 1, Headers),
ok.
ws_deflate_opts_server_context_takeover(Config) ->
doc("Handler is configured with server context takeover enabled."),
{ok, _, Headers1} = do_handshake("/ws_deflate_opts?server_context_takeover",