Browse Source

Lowercase the host part when normalising URI.

Tim Fletcher 16 years ago
parent
commit
646c13e262
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/oauth_uri.erl

+ 2 - 2
src/oauth_uri.erl

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