diff options
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r-- | src/gun_http2.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl index 2778b4f..ec51235 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -979,7 +979,7 @@ prepare_headers(State=#http2_state{transport=Transport}, Scheme = scheme(State), Authority = case lists:keyfind(<<"host">>, 1, Headers0) of {_, Host} -> Host; - _ -> gun_http:host_header(Transport, Host0, Port) + _ -> gun_http:host_header(Transport:name(), Host0, Port) end, %% @todo We also must remove any header found in the connection header. %% @todo Much of this is duplicated in cow_http2_machine; sort things out. |