diff options
author | Loïc Hoguin <[email protected]> | 2020-07-20 15:01:36 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-09-21 15:51:56 +0200 |
commit | f8272a1e8d5fbf3b8021479d142a2002846fe062 (patch) | |
tree | 3a67b6548bacab4eb356c39e53375d4f29dc8976 /src/gun_http2.erl | |
parent | d7481d5f593f48327d16c29b48a74e49c7581e0a (diff) | |
download | gun-f8272a1e8d5fbf3b8021479d142a2002846fe062.tar.gz gun-f8272a1e8d5fbf3b8021479d142a2002846fe062.tar.bz2 gun-f8272a1e8d5fbf3b8021479d142a2002846fe062.zip |
HTTP/2 over HTTP/2 CONNECT
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r-- | src/gun_http2.erl | 6 |
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 |