couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [03/50] git commit: Lowercase the host part when normalising URI.
Date Fri, 17 Jan 2014 22:57:07 GMT
Lowercase the host part when normalising URI.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/commit/646c13e2
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/tree/646c13e2
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/diff/646c13e2

Branch: refs/heads/import
Commit: 646c13e262d4f08ffbd66f4e778e767054b0377b
Parents: 090bebe
Author: Tim Fletcher <tim@tfletcher.com>
Authored: Sat Mar 14 11:54:56 2009 +0000
Committer: Tim Fletcher <tim@tfletcher.com>
Committed: Sat Mar 14 11:54:56 2009 +0000

----------------------------------------------------------------------
 src/oauth_uri.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/646c13e2/src/oauth_uri.erl
----------------------------------------------------------------------
diff --git a/src/oauth_uri.erl b/src/oauth_uri.erl
index d9e3411..2baa0b0 100644
--- a/src/oauth_uri.erl
+++ b/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.


Mime
View raw message