diff options
author | Loïc Hoguin <[email protected]> | 2018-09-26 16:05:52 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-09-26 16:05:52 +0200 |
commit | a49200eef5681a21b47b9398804021b340486db8 (patch) | |
tree | 53d40bf48a276f1ca0a6a2de513bd65aa2f58611 /src/gun_http2.erl | |
parent | 679e3bf1c1dcfeefd405d4edaa060b8350c9a4cf (diff) | |
download | gun-a49200eef5681a21b47b9398804021b340486db8.tar.gz gun-a49200eef5681a21b47b9398804021b340486db8.tar.bz2 gun-a49200eef5681a21b47b9398804021b340486db8.zip |
Don't crash on HEADERS frames with PRIORITY flag set
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r-- | src/gun_http2.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl index edbc7c0..6176fe3 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -188,11 +188,11 @@ frame({headers, StreamID, IsFin, head_fin, HeaderBlock}, %% @todo HEADERS frame starting a headers block. Enter continuation mode. %frame(State, {headers, StreamID, IsFin, head_nofin, HeaderBlockFragment}) -> % State#http2_state{parse_state={continuation, StreamID, IsFin, HeaderBlockFragment}}; -%% @todo Single HEADERS frame headers block with priority. -%frame(State, {headers, StreamID, IsFin, head_fin, -% _IsExclusive, _DepStreamID, _Weight, HeaderBlock}) -> -% %% @todo Handle priority. -% stream_init(State, StreamID, IsFin, HeaderBlock); +%% Single HEADERS frame headers block with priority. +frame({headers, StreamID, IsFin, head_fin, + _IsExclusive, _DepStreamID, _Weight, HeaderBlock}, State) -> + %% @todo Handle priority. + frame({headers, StreamID, IsFin, head_fin, HeaderBlock}, State); %% @todo HEADERS frame starting a headers block. Enter continuation mode. %frame(State, {headers, StreamID, IsFin, head_nofin, % _IsExclusive, _DepStreamID, _Weight, HeaderBlockFragment}) -> |