Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed deprecation warning

  • Loading branch information...
commit 3c1cf2ee5495f9b811253225b2fab3d39ac282aa 1 parent 55d14ae
Robert Dionne authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 apps/etap/src/etap_web.erl
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.