couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject git commit: s/http/httpc
Date Thu, 26 Apr 2012 13:49:18 GMT
Updated Branches:
  refs/heads/master 025031025 -> 6214d8488


s/http/httpc


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

Branch: refs/heads/master
Commit: 6214d848815e91997aab70e1d8193103a21926a4
Parents: 0250310
Author: Robert Newson <rnewson@apache.org>
Authored: Thu Apr 26 13:33:50 2012 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Apr 26 13:33:50 2012 +0100

----------------------------------------------------------------------
 src/etap/etap_web.erl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/6214d848/src/etap/etap_web.erl
----------------------------------------------------------------------
diff --git a/src/etap/etap_web.erl b/src/etap/etap_web.erl
index fb7aee1..f97edfd 100644
--- a/src/etap/etap_web.erl
+++ b/src/etap/etap_web.erl
@@ -42,7 +42,7 @@ simple_404(Url, Desc) ->
 %% @doc Create and return a request structure.
 build_request(Method, Url, Headers, Body) 
  when Method==options;Method==get;Method==head;Method==delete;Method==trace ->
-     try http:request(Method, {Url, Headers}, [{autoredirect, false}], []) of
+     try httpc:request(Method, {Url, Headers}, [{autoredirect, false}], []) of
         {ok, {OutStatus, OutHeaders, OutBody}} ->
             etap_request:new(Method, Url, Headers, Body, OutStatus, OutHeaders, OutBody);
         _ -> error
@@ -56,7 +56,7 @@ build_request(Method, Url, Headers, Body) when Method == post; Method ==
put ->
         {value, {"Content-Type", X}} -> X;
         _ -> []
     end,
-    try http:request(Method, {Url, Headers, ContentType, Body}, [{autoredirect, false}],
[]) of
+    try httpc:request(Method, {Url, Headers, ContentType, Body}, [{autoredirect, false}],
[]) of
         {ok, {OutStatus, OutHeaders, OutBody}} ->
             etap_request:new(Method, Url, Headers, Body, OutStatus, OutHeaders, OutBody);
         _ -> error


Mime
View raw message