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

Disable Automatic Decompression #541

Closed
leonardo-murano opened this issue Oct 4, 2018 · 1 comment
Closed

Disable Automatic Decompression #541

leonardo-murano opened this issue Oct 4, 2018 · 1 comment

Comments

@leonardo-murano
Copy link

Hi,

I'm using a HTTP request to connect to a REST API and download some data and possibly store it via write_disk. As it could be really large, they deliver it compressed in gzip format.
The problem is that the library is autodecompressing it even before I call the content() method and I tried it all but haven't find a way to disable this, is there any way to do so?

@hadley
Copy link
Member

hadley commented Nov 21, 2018

It is possible, but I forget exactly how — you'll need to do a little googling to figure out what option (which appears to be on by default) does this in curl. I'm going to be working on httr for a couple of weeks, so if you still need this, and can't figure it out yourself, please ping me again in a week or so, and I should have more of httr loaded in my brain.

@hadley hadley closed this as completed Nov 21, 2018
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

No branches or pull requests

2 participants