We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b29698 + f815513 commit e155746Copy full SHA for e155746
SRC/json.cpp
@@ -715,7 +715,13 @@ FunctionResult JSONOpenCode(char* buffer)
715
if (!*coding) strcpy(coding,(char*)"Accept-Encoding: identity");
716
size_t len1 = strlen(coding);
717
coding[len1-1] = 0; // remove terminal comma
718
+#if LIBCURL_VERSION_NUM >= 0x071506
719
+ // CURLOPT_ACCEPT_ENCODING renamed in curl 7.21.6
720
+ // cf https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html
721
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, coding);
722
+#else
723
+ curl_easy_setopt(curl, CURLOPT_ENCODING, coding);
724
+#endif
725
726
// Set up the CURL request.
727
CURLcode val;
0 commit comments