diff --git a/src/gun_http2.erl b/src/gun_http2.erl index ec105781..5e59eb43 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -925,7 +925,7 @@ request(State=#http2_state{http2_machine=HTTP2Machine}, StreamRef, ReplyTo, Meth true -> ReplyTo ! {gun_error, self(), stream_ref(State, StreamRef), too_many_streams}, - {State, CookieStore, EvHandlerState}; + {[], CookieStore, EvHandlerState}; false -> request1(State, StreamRef, ReplyTo, Method, Host, Port, Path, Headers, Body, InitialFlow, CookieStore,