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

Fix Websocket compression

The option for enabling Websocket compression has been
renamed. Previously it was shared with HTTP compression,
now it's specific to Websocket. The new option is named
'websocket_compress'.
This commit is contained in:
Loïc Hoguin 2016-08-12 16:56:08 +02:00
parent 5cb2b544b7
commit 97986df276
2 changed files with 24 additions and 25 deletions

View file

@ -39,14 +39,14 @@ init_per_group(Name = autobahn, Config) ->
_ ->
{ok, _} = cowboy:start_clear(Name, 100, [{port, 33080}], #{
env => #{dispatch => init_dispatch()},
compress => true %% @todo Use a separate option for HTTP and Websocket compression.
websocket_compress => true
}),
Config
end;
init_per_group(Name = ws, Config) ->
cowboy_test:init_http(Name, #{
env => #{dispatch => init_dispatch()},
compress => true %% @todo Use a separate option for HTTP and Websocket compression.
websocket_compress => true
}, Config).
end_per_group(Listener, _Config) ->