Fix: provide the port as an integer, not string (EJAB-560)

SVN Revision: 1562
This commit is contained in:
Badlop 2008-09-12 14:31:04 +00:00
parent e9d62b39ef
commit 81c70c347f
1 changed files with 2 additions and 2 deletions

View File

@ -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