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

Httpclient getContent does not support Content-Encoding: gzip. #7864

Open
treeform opened this issue May 22, 2018 · 3 comments
Open

Httpclient getContent does not support Content-Encoding: gzip. #7864

treeform opened this issue May 22, 2018 · 3 comments

Comments

@treeform
Copy link
Contributor

If you ask a website "Accept-Encoding": "gzip, deflate, br" it will usually return it as Content-Encoding: gzip. httpclient and just gives you the zipped files instead. I would have expected it to unzip the file and return it like almost every other tool does.

@dom96
Copy link
Contributor

dom96 commented May 23, 2018

Happy to accept PRs. I'm pretty sure gzip is pretty tough though, you would need to depend on a C library or implement it in Nim natively.

@guzba
Copy link
Contributor

guzba commented Nov 8, 2020

I am working on a pure Nim implementation of deflate, gzip, zlib etc over here https://github.com/guzba/zippy (example httpclient gzip uncompress: https://github.com/guzba/zippy/blob/master/examples/http_client.nim)

@treeform
Copy link
Contributor Author

I have written a HTTP library to solve this problem: https://github.com/treeform/puppy

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

No branches or pull requests

3 participants