diff options
author | Loïc Hoguin <[email protected]> | 2019-10-01 21:11:25 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-10-01 21:11:25 +0200 |
commit | 7d70e77d9f8dbddb14e41c5797787e00c9f613ea (patch) | |
tree | c76873b1f5e56a184f7af70db15a7b56a4eaa196 /src | |
parent | 7f0978df6dad631316c29ba0dbbd33df9cfb77b4 (diff) | |
download | cowlib-7d70e77d9f8dbddb14e41c5797787e00c9f613ea.tar.gz cowlib-7d70e77d9f8dbddb14e41c5797787e00c9f613ea.tar.bz2 cowlib-7d70e77d9f8dbddb14e41c5797787e00c9f613ea.zip |
Don't filter HTTP/2 options
It's not a big gain and causes issues when forgetting to update
the list. Maybe it can be added back again at a later time.
Diffstat (limited to 'src')
-rw-r--r-- | src/cow_http2_machine.erl | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/cow_http2_machine.erl b/src/cow_http2_machine.erl index 0779ffc..de2346d 100644 --- a/src/cow_http2_machine.erl +++ b/src/cow_http2_machine.erl @@ -191,7 +191,7 @@ init(client, Opts) -> NextSettings = settings_init(Opts), client_preface(#http2_machine{ mode=client, - opts=only_keep_relevant_opts(Opts), + opts=Opts, preface_timer=start_timer(preface_timeout, Opts), settings_timer=start_timer(settings_timeout, Opts), next_settings=NextSettings, @@ -201,22 +201,13 @@ init(server, Opts) -> NextSettings = settings_init(Opts), common_preface(#http2_machine{ mode=server, - opts=only_keep_relevant_opts(Opts), + opts=Opts, preface_timer=start_timer(preface_timeout, Opts), settings_timer=start_timer(settings_timeout, Opts), next_settings=NextSettings, local_streamid=2 }). -%% We remove the options that are part of SETTINGS or that are not known. -only_keep_relevant_opts(Opts) -> - maps:with([ - initial_connection_window_size, - max_encode_table_size, - max_frame_size_sent, - settings_timeout - ], Opts). - start_timer(Name, Opts) -> case maps:get(Name, Opts, 5000) of infinity -> undefined; |