You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by mo...@apache.org on 2012/03/22 08:02:15 UTC

svn commit: r1303671 - /thrift/trunk/lib/erl/src/thrift_http_transport.erl

Author: molinaro
Date: Thu Mar 22 07:02:15 2012
New Revision: 1303671

URL: http://svn.apache.org/viewvc?rev=1303671&view=rev
Log:
THRIFT-1344 - fix http deprecation warning

Modified:
    thrift/trunk/lib/erl/src/thrift_http_transport.erl

Modified: thrift/trunk/lib/erl/src/thrift_http_transport.erl
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/erl/src/thrift_http_transport.erl?rev=1303671&r1=1303670&r2=1303671&view=diff
==============================================================================
--- thrift/trunk/lib/erl/src/thrift_http_transport.erl (original)
+++ thrift/trunk/lib/erl/src/thrift_http_transport.erl Thu Mar 22 07:02:15 2012
@@ -87,7 +87,7 @@ flush(State = #http_transport{host = Hos
             {State, ok};
         WBinary ->
             {ok, {{_Version, 200, _ReasonPhrase}, _Headers, Body}} =
-              http:request(post,
+              httpc:request(post,
                            {"http://" ++ Host ++ Path,
                             [{"User-Agent", "Erlang/thrift_http_transport"} | ExtraHeaders],
                             "application/x-thrift",
@@ -114,6 +114,3 @@ read(State = #http_transport{read_buffer
         _ ->
             {State, {error, 'EOF'}}
     end.
-
-min(A,B) when A<B -> A;
-min(_,B)          -> B.