New issue 6 by sendtopms: Bug in parse_element(server_port, Req) function
http://code.google.com/p/ewgi/issues/detail?id=6
parse_element(server_port, Req) ->
HostPort = Req:get_header_value(host),
case HostPort of
HostPort when is_list(HostPort) ->
case length(HostPort) of
2 -> lists:nth(2, HostPort);
_ -> undefined
end;
_ ->
undefined
end;
It suppose to be as below,
parse_element(server_port, Req) ->
HP = Req:get_header_value(host),
case HP of
HP when is_list(HP) ->
HostPort = string:tokens(HP, ":"),
case length(HostPort) of
2 -> lists:nth(2, HostPort);
_ -> undefined
end;
_ ->
undefined
end;
Please fix this issue,
Thanks,
Senthilkumar Peelikkampatti
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 6 by filippo.pacini: Bug in parse_element(server_port,
Req) function
http://code.google.com/p/ewgi/issues/detail?id=6
Thanks for the bug report. We will apply it.
The development of ewgi has moved to github.
The main repository is here:
http://github.com/skarab/ewgi
Please get updated versions from there.
thanks again