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.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 3d4f580..b1eb370 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -353,6 +353,7 @@ request(State0=#http2_state{socket=Socket, transport=Transport, encode_state=Enc
prepare_headers(EncodeState, Transport, Method, Host0, Port, Path, Headers0) ->
Host2 = case Host0 of
+ {local, _SocketPath} -> <<>>;
Tuple when is_tuple(Tuple) -> inet:ntoa(Tuple);
_ -> Host0
end,