diff options
author | Loïc Hoguin <[email protected]> | 2018-04-25 16:55:52 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-04-25 16:55:52 +0200 |
commit | 8f4adf437cdfea60bab33d0e44133b6962857bc1 (patch) | |
tree | a6f4b725efb4cefc6b4698f7f63e42460542caba /test/draft_h2_websockets_SUITE.erl | |
parent | bc79529b4dbd8951b833818ccc7179de22e8ed88 (diff) | |
download | cowboy-8f4adf437cdfea60bab33d0e44133b6962857bc1.tar.gz cowboy-8f4adf437cdfea60bab33d0e44133b6962857bc1.tar.bz2 cowboy-8f4adf437cdfea60bab33d0e44133b6962857bc1.zip |
Add options to control h2's SETTINGS_HEADER_TABLE_SIZE
Diffstat (limited to 'test/draft_h2_websockets_SUITE.erl')
-rw-r--r-- | test/draft_h2_websockets_SUITE.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/draft_h2_websockets_SUITE.erl b/test/draft_h2_websockets_SUITE.erl index 31429df..bf7f537 100644 --- a/test/draft_h2_websockets_SUITE.erl +++ b/test/draft_h2_websockets_SUITE.erl @@ -78,7 +78,10 @@ reject_handshake_when_disabled(Config0) -> }, Config0), %% Connect to server and confirm that SETTINGS_ENABLE_CONNECT_PROTOCOL = 0. {ok, Socket, Settings} = do_handshake(Config), - #{enable_connect_protocol := false} = Settings, + case Settings of + #{enable_connect_protocol := false} -> ok; + _ when map_size(Settings) =:= 0 -> ok + end, %% Send a CONNECT :protocol request to upgrade the stream to Websocket. {ReqHeadersBlock, _} = cow_hpack:encode([ {<<":method">>, <<"CONNECT">>}, @@ -102,7 +105,10 @@ reject_handshake_disabled_by_default(Config0) -> }, Config0), %% Connect to server and confirm that SETTINGS_ENABLE_CONNECT_PROTOCOL = 0. {ok, Socket, Settings} = do_handshake(Config), - #{enable_connect_protocol := false} = Settings, + case Settings of + #{enable_connect_protocol := false} -> ok; + _ when map_size(Settings) =:= 0 -> ok + end, %% Send a CONNECT :protocol request to upgrade the stream to Websocket. {ReqHeadersBlock, _} = cow_hpack:encode([ {<<":method">>, <<"CONNECT">>}, |