From 36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 5 Jan 2019 22:50:45 +0100 Subject: Fix atom hostnames --- src/gun_http.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gun_http.erl') diff --git a/src/gun_http.erl b/src/gun_http.erl index ec459a3..e6b597c 100644 --- a/src/gun_http.erl +++ b/src/gun_http.erl @@ -374,6 +374,7 @@ host_header(Transport, Host0, Port) -> Host = case Host0 of {local, _SocketPath} -> <<>>; Tuple when is_tuple(Tuple) -> inet:ntoa(Tuple); + Atom when is_atom(Atom) -> atom_to_list(Atom); _ -> Host0 end, case {Transport:name(), Port} of -- cgit v1.2.3