Ask server to gzip data.

This commit is contained in:
King_DuckZ 2020-02-19 17:22:08 +01:00
parent 33866b3d6b
commit 6e35c880a4

View file

@ -157,6 +157,9 @@ namespace duck {
easy.add(curl_pair<CURLoption, std::string>(CURLOPT_USERAGENT, parUserAgent));
easy.add(curl_pair<CURLoption, long>(CURLOPT_FOLLOWLOCATION, 1L));
easy.add(curl_pair<CURLoption, std::string>(CURLOPT_ACCEPT_ENCODING, "gzip"));
easy.add(curl_pair<CURLoption, long>(CURLOPT_HTTP_CONTENT_DECODING, 1L));
//try {
easy.perform();
//}