aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gun_http2.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 990d08c..3b92286 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -150,11 +150,13 @@ parse(Data0, State0=#http2_state{buffer=Buffer, parse_state=PS}) ->
{ok, Frame, Rest} when PS =:= normal ->
case frame(Frame, State0) of
close -> close;
+ Error = {error, _} -> Error;
State1 -> parse(Rest, State1)
end;
{ok, Frame, Rest} when element(1, PS) =:= continuation ->
case continuation_frame(Frame, State0) of
close -> close;
+ Error = {error, _} -> Error;
State1 -> parse(Rest, State1)
end;
{ignore, _} when element(1, PS) =:= continuation ->