Skip to content

Commit

Permalink
Fix merge conflict mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiderkwast committed Oct 7, 2022
1 parent 7d3e6e5 commit f7ba815
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/gun_http2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -936,20 +936,21 @@ request(State, RealStreamRef=[StreamRef|_], ReplyTo, Method, _Host, _Port,
Path, Headers, Body, InitialFlow, CookieStore0, EvHandler, EvHandlerState0) ->
case get_stream_by_ref(State, StreamRef) of
%% @todo We should send an error to the user if the stream isn't ready.
Stream=#stream{tunnel=Tunnel=#tunnel{protocol=Proto, protocol_state=ProtoState0, info=#{
Stream=#stream{tunnel=#tunnel{protocol=Proto, protocol_state=ProtoState0, info=#{
origin_host := OriginHost, origin_port := OriginPort}}} ->
{ProtoState, CookieStore, EvHandlerState} = Proto:request(ProtoState0, RealStreamRef,
{Commands, CookieStore, EvHandlerState1} = Proto:request(ProtoState0, RealStreamRef,
ReplyTo, Method, OriginHost, OriginPort, Path, Headers, Body,
InitialFlow, CookieStore0, EvHandler, EvHandlerState0),
{store_stream(State, Stream#stream{tunnel=Tunnel#tunnel{protocol_state=ProtoState}}),
CookieStore, EvHandlerState};
{ResCommands, EvHandlerState} = tunnel_commands(Commands,
Stream, State, EvHandler, EvHandlerState1),
{ResCommands, CookieStore, EvHandlerState};
#stream{tunnel=undefined} ->
ReplyTo ! {gun_error, self(), stream_ref(State, StreamRef), {badstate,
"The stream is not a tunnel."}},
{State, CookieStore0, EvHandlerState0};
{[], CookieStore0, EvHandlerState0};
error ->
{error_stream_not_found(State, StreamRef, ReplyTo),
CookieStore0, EvHandlerState0}
error_stream_not_found(State, StreamRef, ReplyTo),
{[], CookieStore0, EvHandlerState0}
end.

request1(State0=#http2_state{socket=Socket, transport=Transport, opts=Opts,
Expand Down

0 comments on commit f7ba815

Please sign in to comment.