Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response body is not decoded correctly #20

Merged
merged 2 commits into from
Dec 3, 2013

Conversation

isabanin
Copy link
Contributor

This commit changed the way Ruby decodes response body:

ruby/ruby@ddddf04

Without the line of code that I ported, gzip content from response body will not be automatically decoded. This will break gems such as postmark.

Compatibility with Ruby 2.0
@seanxiesx
Copy link

Thanks @isabanin , this fixes a bug I encountered with an Amazon MWS gem which uses Net::HTTP when upgrading to Ruby 2. Could you update your pull request to something like

 res.decode_content = req.decode_content if RUBY_VERSION > '2.0'

so it doesn't break older rubies?

@isabanin
Copy link
Contributor Author

Done.

@seanxiesx
Copy link

@konstantin-dzreyev any chance we can merge this? thanks (:

@robertsulway
Copy link
Contributor

acu142496 COMPLIANCE-COMMITMESSAGE-FIXED

robertsulway pushed a commit that referenced this pull request Dec 3, 2013
Response body is not decoded correctly
@robertsulway robertsulway merged commit 3359524 into flexera-public:master Dec 3, 2013
@rb2k
Copy link

rb2k commented Jan 23, 2014

Could we release a new gem version with this fix included?

@seanxiesx
Copy link

+1

@amitavmohanty01
Copy link

+1

much needed

@ghost
Copy link

ghost commented May 29, 2014

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants