aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index e1a9873..14eb10b 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -317,7 +317,8 @@ data_frame(State, StreamID, IsFin, Data, EvHandler, EvHandlerState0) ->
Stream=#stream{tunnel=undefined} ->
data_frame(State, StreamID, IsFin, Data, EvHandler, EvHandlerState0, Stream);
Stream=#stream{tunnel={Protocol, ProtoState0, TunnelInfo}} ->
- {ProtoState, EvHandlerState} = Protocol:handle(Data, ProtoState0,
+ %% @todo Commands.
+ {{state, ProtoState}, EvHandlerState} = Protocol:handle(Data, ProtoState0,
EvHandler, EvHandlerState0),
{store_stream(State, Stream#stream{tunnel={Protocol, ProtoState, TunnelInfo}}),
EvHandlerState}
@@ -761,7 +762,8 @@ prepare_headers(#http2_state{transport=Transport}, Method, Host0, Port, Path, He
scheme => case Transport of
gun_tls -> <<"https">>;
gun_tls_proxy -> <<"https">>;
- gun_tcp -> <<"http">>
+ gun_tcp -> <<"http">>;
+ gun_tcp_proxy -> <<"http">>
end,
authority => Authority,
path => Path