Issue 6 in ewgi: Bug in parse_element(server_port, Req) function

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 9, 2009, 12:43:45 AM11/9/09
to ewgi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

codesite...@google.com

unread,
Nov 9, 2009, 4:52:34 AM11/9/09
to ewgi...@googlegroups.com
Updates:
Status: Accepted

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

codesite...@google.com

unread,
Nov 13, 2009, 4:53:00 PM11/13/09
to ewgi...@googlegroups.com
Updates:
Status: Done

Comment #2 on issue 6 by filippo.pacini: Bug in parse_element(server_port,
Req) function
http://code.google.com/p/ewgi/issues/detail?id=6

Patch applied.
Reply all
Reply to author
Forward
0 new messages