mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Cowlib 2.11.1
This commit is contained in:
parent
2a08250499
commit
4922ddc474
4 changed files with 11 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@ CT_OPTS += -ct_hooks cowboy_ct_hook [] # -boot start_sasl
|
||||||
LOCAL_DEPS = crypto
|
LOCAL_DEPS = crypto
|
||||||
|
|
||||||
DEPS = cowlib ranch
|
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
|
dep_ranch = git https://github.com/ninenines/ranch 1.8.0
|
||||||
|
|
||||||
DOC_DEPS = asciideck
|
DOC_DEPS = asciideck
|
||||||
|
|
|
@ -32,7 +32,7 @@ Cowboy 2.9 requires Erlang/OTP 22.0 or greater.
|
||||||
|
|
||||||
* Update Ranch to 1.8.0.
|
* Update Ranch to 1.8.0.
|
||||||
|
|
||||||
* Update Cowlib to 2.11.0.
|
* Update Cowlib to 2.11.1.
|
||||||
|
|
||||||
=== Bugs fixed
|
=== Bugs fixed
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{deps, [
|
{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]}.
|
{erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard,warn_missing_spec,warn_untyped_record]}.
|
||||||
|
|
|
@ -247,6 +247,14 @@ ws_deflate_opts_client_max_window_bits_override(Config) ->
|
||||||
= lists:keyfind("sec-websocket-extensions", 1, Headers2),
|
= lists:keyfind("sec-websocket-extensions", 1, Headers2),
|
||||||
ok.
|
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) ->
|
ws_deflate_opts_server_context_takeover(Config) ->
|
||||||
doc("Handler is configured with server context takeover enabled."),
|
doc("Handler is configured with server context takeover enabled."),
|
||||||
{ok, _, Headers1} = do_handshake("/ws_deflate_opts?server_context_takeover",
|
{ok, _, Headers1} = do_handshake("/ws_deflate_opts?server_context_takeover",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue