aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-01-05 22:50:45 +0100
committerLoïc Hoguin <[email protected]>2019-01-05 22:50:45 +0100
commit36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25 (patch)
treebf3cda9f178b21fb030519ad2f62faed89174f2e /src/gun_http.erl
parent08c4a71c801246c66427f2a37d2f0f6de561d448 (diff)
downloadgun-36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25.tar.gz
gun-36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25.tar.bz2
gun-36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25.zip
Fix atom hostnames
Diffstat (limited to 'src/gun_http.erl')
-rw-r--r--src/gun_http.erl1
1 files changed, 1 insertions, 0 deletions
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