Skip to content

[Bug #8182] XMLRPC request fails with "Wrong size. Was 31564, should be 1501" #308

Closed
wants to merge 1 commit into from

2 participants

@dmacvicar
  • lib/net/http/response.rb: transparently deflates the response body,
    removes the "content-encoding" response header, but does not adjust
    the "content-length" header accordingly.
    So, pass the context to the Inflater so that we count the
    uncompressed data for every chunk inflated, and then on finish we
    set the right Content-Length.
    [Bug #8182]

  • test/net/http/test_httpresponse.rb: enhance testcase to check
    the right Content-Length

@dmacvicar dmacvicar * lib/net/http/response.rb: transparently deflates the response body,
  removes the "content-encoding" response header, but does not adjust
  the "content-length" header accordingly.
  So, pass the context to the Inflater so that we count the
  uncompressed data for every chunk inflated, and then on finish we
  set the right Content-Length.
  [Bug #8182]

* test/net/http/test_httpresponse.rb: enhance testcase to check
  the right Content-Length
7137383
@zzak
Ruby Programming Language member
zzak commented May 19, 2013

Closing this in favor of the ticket on redmine: http://bugs.ruby-lang.org/issues/8182

@zzak zzak closed this May 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.