diff options
author | Loïc Hoguin <[email protected]> | 2018-09-28 16:59:08 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-09-28 16:59:08 +0200 |
commit | 52d37ee91141e7be808a398deb0cf2ba1871ec9c (patch) | |
tree | 5cf79de89f83981a8c9dd35f76db2125dc036d78 | |
parent | 47391e3a48e59a9fe51f15b1e69bf98f0c3b5a5d (diff) | |
download | gun-52d37ee91141e7be808a398deb0cf2ba1871ec9c.tar.gz gun-52d37ee91141e7be808a398deb0cf2ba1871ec9c.tar.bz2 gun-52d37ee91141e7be808a398deb0cf2ba1871ec9c.zip |
Ignore HTTP/2 frames of unknown types
-rw-r--r-- | src/gun_http2.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl index 6176fe3..1905888 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -119,6 +119,8 @@ parse(Data0, State0=#http2_state{buffer=Buffer}) -> close -> close; State1 -> parse(Rest, State1) end; + {ignore, Rest} -> + parse(Rest, State0); {stream_error, StreamID, Reason, Human, Rest} -> parse(Rest, stream_reset(State0, StreamID, {stream_error, Reason, Human})); Error = {connection_error, _, _} -> |