aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-26 16:05:52 +0200
committerLoïc Hoguin <[email protected]>2018-09-26 16:05:52 +0200
commita49200eef5681a21b47b9398804021b340486db8 (patch)
tree53d40bf48a276f1ca0a6a2de513bd65aa2f58611 /src
parent679e3bf1c1dcfeefd405d4edaa060b8350c9a4cf (diff)
downloadgun-a49200eef5681a21b47b9398804021b340486db8.tar.gz
gun-a49200eef5681a21b47b9398804021b340486db8.tar.bz2
gun-a49200eef5681a21b47b9398804021b340486db8.zip
Don't crash on HEADERS frames with PRIORITY flag set
Diffstat (limited to 'src')
-rw-r--r--src/gun_http2.erl10
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}) ->