Update Ruby HTTP transport for recent Ruby versions
---------------------------------------------------

                 Key: THRIFT-1571
                 URL: https://issues.apache.org/jira/browse/THRIFT-1571
             Project: Thrift
          Issue Type: Bug
          Components: Ruby - Library
    Affects Versions: 0.8
            Reporter: Seth Hitchings
         Attachments: thrift-1571.patch

Net::HTTP.post no longer returns the HTTP response body string as a second 
return value. From 
http://ruby-doc.org/stdlib-1.8.7/libdoc/net/http/rdoc/Net/HTTP.html:

"In version 1.1 (ruby 1.6), this method returns a pair of objects, a 
Net::HTTPResponse object and an entity body string. In version 1.2 (ruby 1.8), 
this method returns a Net::HTTPResponse object."

The attached patch modifies http_client_transport.rb to get the response body 
from the returned Net::HTTPResponse object instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to