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

Fixed download with cpr::AcceptEncoding #1010

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

COM8
Copy link
Member

@COM8 COM8 commented Jan 5, 2024

Fixes #1008.

The following was not possible:

cpr::Session session;
session.SetAcceptEncoding(cpr::AcceptEncoding{cpr::AcceptEncodingMethods::gzip});
session.SetUrl("https://example.com");
cpr::Response response = session.Download(of);

Besides that, this PR fixes even more things that were not possible with cpr::Download like, proxy and TLS settings.

@COM8 COM8 added the Bug 🐛 label Jan 5, 2024
@COM8 COM8 added this to the CPR 1.11.0 milestone Jan 5, 2024
@COM8 COM8 self-assigned this Jan 5, 2024
@COM8 COM8 merged commit 8efa3d3 into master Jan 8, 2024
88 of 105 checks passed
@COM8 COM8 deleted the fix/download_accept_encoding branch January 8, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cpr::Download failed to decode downloaded content of gzip encoding
1 participant