couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [16/50] git commit: Use httpc module instead of http module.
Date Fri, 17 Jan 2014 22:57:20 GMT
Use httpc module instead of http module.


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

Branch: refs/heads/import
Commit: 7d85d3efdc4723ef0a02212653ab71ecebf9e7c5
Parents: e8aecf0
Author: Tim Fletcher <mail@tfletcher.com>
Authored: Fri Jun 25 18:43:15 2010 +0100
Committer: Tim Fletcher <tim@tfletcher.com>
Committed: Fri Jun 25 18:43:15 2010 +0100

----------------------------------------------------------------------
 src/oauth_client.erl | 2 +-
 src/oauth_http.erl   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/7d85d3ef/src/oauth_client.erl
----------------------------------------------------------------------
diff --git a/src/oauth_client.erl b/src/oauth_client.erl
index 73a7869..2bd24c0 100644
--- a/src/oauth_client.erl
+++ b/src/oauth_client.erl
@@ -68,7 +68,7 @@ oauth_get(header, URL, Params, Consumer, Token, TokenSecret) ->
   Signed = oauth:signed_params("GET", URL, Params, Consumer, Token, TokenSecret),
   {AuthorizationParams, QueryParams} = lists:partition(fun({K, _}) -> lists:prefix("oauth_",
K) end, Signed),
   Request = {oauth:uri(URL, QueryParams), [oauth:header(AuthorizationParams)]},
-  http:request(get, Request, [{autoredirect, false}], []);
+  httpc:request(get, Request, [{autoredirect, false}], []);
 oauth_get(querystring, URL, Params, Consumer, Token, TokenSecret) ->
   oauth:get(URL, Params, Consumer, Token, TokenSecret).
 

http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/7d85d3ef/src/oauth_http.erl
----------------------------------------------------------------------
diff --git a/src/oauth_http.erl b/src/oauth_http.erl
index bf5a4ba..92c806c 100644
--- a/src/oauth_http.erl
+++ b/src/oauth_http.erl
@@ -10,7 +10,7 @@ post(URL, Data) ->
   request(post, {URL, [], "application/x-www-form-urlencoded", Data}).
 
 request(Method, Request) ->
-  http:request(Method, Request, [{autoredirect, false}], []).
+  httpc:request(Method, Request, [{autoredirect, false}], []).
 
 response_params(Response) ->
   oauth_uri:params_from_string(response_body(Response)).


Mime
View raw message