diff options
author | Loïc Hoguin <[email protected]> | 2019-01-05 22:50:45 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-01-05 22:50:45 +0100 |
commit | 36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25 (patch) | |
tree | bf3cda9f178b21fb030519ad2f62faed89174f2e /src | |
parent | 08c4a71c801246c66427f2a37d2f0f6de561d448 (diff) | |
download | gun-36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25.tar.gz gun-36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25.tar.bz2 gun-36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25.zip |
Fix atom hostnames
Diffstat (limited to 'src')
-rw-r--r-- | src/gun_http.erl | 1 |
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 |