You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2011/10/10 23:10:29 UTC
[1/2] git commit: Fix R15 warning for etap_web.erl
Updated Branches:
refs/heads/1.1.x da22c19f7 -> 605f274ff
Fix R15 warning for etap_web.erl
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/605f274f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/605f274f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/605f274f
Branch: refs/heads/1.1.x
Commit: 605f274ff8fa5d421d7397eef3e719950b853838
Parents: 1a11127
Author: Robert Newson <rn...@apache.org>
Authored: Mon Oct 10 22:06:37 2011 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Mon Oct 10 22:06:48 2011 +0100
----------------------------------------------------------------------
src/etap/etap_web.erl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/605f274f/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