diff options
-rw-r--r-- | src/web/ejabberd_http.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/ejabberd_http.erl b/src/web/ejabberd_http.erl index c59f3d972..5c15fcd16 100644 --- a/src/web/ejabberd_http.erl +++ b/src/web/ejabberd_http.erl @@ -276,11 +276,11 @@ get_transfer_protocol(SockMod, HostPort) -> {gen_tcp, []} -> {Host, 80, http}; {gen_tcp, [Port]} -> - {Host, Port, http}; + {Host, list_to_integer(Port), http}; {tls, []} -> {Host, 443, https}; {tls, [Port]} -> - {Host, Port, https} + {Host, list_to_integer(Port), https} end. %% XXX bard: search through request handlers looking for one that |