libcpr / cpr

C++ Requests: Curl for People, a spiritual port of Python Requests.
https://docs.libcpr.org/
Other
6.29k stars 903 forks source link

Fixed download with cpr::AcceptEncoding #1010

Closed COM8 closed 5 months ago

COM8 commented 5 months ago

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.