couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filipe David Manana <fdman...@apache.org>
Subject Re: git commit: add support of erlang R15B in oauth.
Date Tue, 03 Jan 2012 13:29:28 GMT
Any reason to not apply this change to branches 1.2.x and 1.1.x?
I see this small patch was applied upstream as well.

On Mon, Jan 2, 2012 at 4:39 PM,  <benoitc@apache.org> wrote:
> Updated Branches:
>  refs/heads/master 389142e0e -> adb62ce3a
>
>
> add support of erlang R15B in oauth.
>
>
> Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
> Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/adb62ce3
> Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/adb62ce3
> Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/adb62ce3
>
> Branch: refs/heads/master
> Commit: adb62ce3a8cff25af7d0329e1a3790c389ad74e1
> Parents: 389142e
> Author: benoitc <benoitc@apache.org>
> Authored: Mon Jan 2 17:39:01 2012 +0100
> Committer: benoitc <benoitc@apache.org>
> Committed: Mon Jan 2 17:39:01 2012 +0100
>
> ----------------------------------------------------------------------
>  src/erlang-oauth/oauth_uri.erl |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> ----------------------------------------------------------------------
>
>
> http://git-wip-us.apache.org/repos/asf/couchdb/blob/adb62ce3/src/erlang-oauth/oauth_uri.erl
> ----------------------------------------------------------------------
> diff --git a/src/erlang-oauth/oauth_uri.erl b/src/erlang-oauth/oauth_uri.erl
> index 5023f98..aebf093 100644
> --- a/src/erlang-oauth/oauth_uri.erl
> +++ b/src/erlang-oauth/oauth_uri.erl
> @@ -9,6 +9,8 @@
>
>  normalize(URI) ->
>   case http_uri:parse(URI) of
> +    {ok, {Scheme, UserInfo, Host, Port, Path, _Query}} -> % R15B
> +        normalize(Scheme, UserInfo, string:to_lower(Host), Port, [Path]);
>     {Scheme, UserInfo, Host, Port, Path, _Query} ->
>       normalize(Scheme, UserInfo, string:to_lower(Host), Port, [Path]);
>     Else ->
>



-- 
Filipe David Manana,

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."

Mime
View raw message