You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 23:57:07 UTC
[03/50] git commit: Lowercase the host part when normalising URI.
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 <ti...@tfletcher.com>
Authored: Sat Mar 14 11:54:56 2009 +0000
Committer: Tim Fletcher <ti...@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.