Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1571

Update Ruby HTTP transport for recent Ruby versions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.8
    • 0.9
    • Ruby - Library
    • None
    • Patch Available

    Description

      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.

      Attachments

        1. thrift-1571.patch
          0.6 kB
          Seth Hitchings

        Activity

          People

            jfarrell Jake Farrell
            sethhitch Seth Hitchings
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: