Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Lowercase the host part when normalising URI.
  • Loading branch information
Tim Fletcher committed Mar 14, 2009
1 parent 090bebe commit 646c13e262d4f08ffbd66f4e778e767054b0377b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -16,8 +16,8 @@

normalize(URI) ->
case http_uri:parse(URI) of
{Scheme, UserInfo, Host, Port, Path, Query} ->
normalize(Scheme, UserInfo, Host, Port, [Path, Query]);
{Scheme, UserInfo, Host, Port, Path, _Query} ->
normalize(Scheme, UserInfo, string:to_lower(Host), Port, [Path]);
Else ->
Else
end.

0 comments on commit 646c13e

Please sign in to comment.