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

Feature Request: compression support #101

Open
sweihub opened this issue Dec 7, 2023 · 0 comments
Open

Feature Request: compression support #101

sweihub opened this issue Dec 7, 2023 · 0 comments

Comments

@sweihub
Copy link

sweihub commented Dec 7, 2023

Hi

Thanks for the cute minreq, it's really handy!

However, can you add compression support?

let records: Vec<Last> = minreq::get(url)
                .with_header("Accept-Encoding", "deflate, gzip")
                .with_timeout(5)
                .send()?
                .json()?;

Gives the error

response contained invalid utf-8 where valid utf-8 was expected
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

1 participant