diff options
author | Badlop <badlop@process-one.net> | 2008-09-12 14:31:04 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2008-09-12 14:31:04 +0000 |
commit | 81c70c347f66887edebdab8764fed06a459340a9 (patch) | |
tree | 981766dbcfe3051cff16085faef875a7da11e0b3 | |
parent | * src/web/ejabberd_http.hrl: Provide Host, Port, Headers and (diff) |
Fix: provide the port as an integer, not string (EJAB-560)
SVN Revision: 1562
-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 |