diff options
author | Loïc Hoguin <[email protected]> | 2018-11-16 13:09:01 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-11-16 13:09:01 +0100 |
commit | 75045637fc6026054900f2dbea75805ad7c8e682 (patch) | |
tree | a7d426e8a463de52127981758e6e6624c30b609c /src/cowboy_http2.erl | |
parent | 1949357f0cbcc1e6c94add457c7cad90d35340c1 (diff) | |
download | cowboy-75045637fc6026054900f2dbea75805ad7c8e682.tar.gz cowboy-75045637fc6026054900f2dbea75805ad7c8e682.tar.bz2 cowboy-75045637fc6026054900f2dbea75805ad7c8e682.zip |
Ensure unknown options are ignored in set_options command
Diffstat (limited to 'src/cowboy_http2.erl')
-rw-r--r-- | src/cowboy_http2.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl index 3397241..b83c021 100644 --- a/src/cowboy_http2.erl +++ b/src/cowboy_http2.erl @@ -576,6 +576,9 @@ commands(State=#state{socket=Socket, transport=Transport, http2_init=upgrade}, commands(State0, StreamID, [{switch_protocol, Headers, _Mod, _ModState}|Tail]) -> State = info(State0, StreamID, {headers, 200, Headers}), commands(State, StreamID, Tail); +%% Set options dynamically. +commands(State, StreamID, [{set_options, _Opts}|Tail]) -> + commands(State, StreamID, Tail); commands(State, StreamID, [stop|_Tail]) -> %% @todo Do we want to run the commands after a stop? %% @todo Do we even allow commands after? |