diff options
author | Loïc Hoguin <[email protected]> | 2020-10-03 20:34:50 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-10-03 21:03:28 +0200 |
commit | 563560e157aa767e655896ff7c2858587a436629 (patch) | |
tree | 85814460e46fb46cde93879296e7d79fde0f1ddc /src/gun_http2.erl | |
parent | 37bf8c409ae341fdebdc062a33cd7fce7ac1f5b5 (diff) | |
download | gun-563560e157aa767e655896ff7c2858587a436629.tar.gz gun-563560e157aa767e655896ff7c2858587a436629.tar.bz2 gun-563560e157aa767e655896ff7c2858587a436629.zip |
Fix Dialyzer warnings
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r-- | src/gun_http2.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl index f8b507d..9dfc67c 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -357,7 +357,7 @@ tunnel_commands([SetCookie={set_cookie, _, _, _, _}|Tail], Stream, State=#http2_ continue_stream_ref(#http2_state{socket=#{handle_continue_stream_ref := ContinueStreamRef}}, StreamRef) -> case ContinueStreamRef of [_|_] -> ContinueStreamRef ++ [StreamRef]; - _ -> [ContinueStreamRef|StreamRef] + _ -> [ContinueStreamRef, StreamRef] end; continue_stream_ref(State, StreamRef) -> stream_ref(State, StreamRef). @@ -399,7 +399,7 @@ data_frame(State0, StreamID, IsFin, Data, EvHandler, EvHandlerState0, {maybe_delete_stream(State, StreamID, remote, IsFin), EvHandlerState}. %% @todo Make separate functions for inform/connect/normal. -headers_frame(State0=#http2_state{socket=Socket, transport=Transport, opts=Opts, +headers_frame(State0=#http2_state{transport=Transport, opts=Opts, tunnel_transport=TunnelTransport, content_handlers=Handlers0, commands_queue=Commands}, StreamID, IsFin, Headers, #{status := Status}, _BodyLen, EvHandler, EvHandlerState0) -> @@ -444,7 +444,6 @@ headers_frame(State0=#http2_state{socket=Socket, transport=Transport, opts=Opts, gun_pid => self(), reply_to => ReplyTo, stream_ref => RealStreamRef, - %% @todo That's wrong when we are already in a tunnel? handle_continue_stream_ref => ContinueStreamRef }, Proto = gun_tunnel, |