summaryrefslogtreecommitdiff
path: root/apps/etap/src
diff options
context:
space:
mode:
authorRobert Dionne <bob@cloudant.com>2010-11-01 10:34:40 -0400
committerRobert Dionne <bob@cloudant.com>2010-11-01 10:34:40 -0400
commit3c1cf2ee5495f9b811253225b2fab3d39ac282aa (patch)
tree8e1c9fde09699d898e666afac6531badbac3f7d9 /apps/etap/src
parent55d14ae751604e0b57597867045907e5f2233607 (diff)
fixed deprecation warning
Diffstat (limited to 'apps/etap/src')
-rw-r--r--apps/etap/src/etap_web.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/etap/src/etap_web.erl b/apps/etap/src/etap_web.erl
index fb7aee16..f97edfd7 100644
--- a/apps/etap/src/etap_web.erl
+++ b/apps/etap/src/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