curl encoding support added

This commit is contained in:
Barış Yıldırım
2025-01-25 13:45:43 +03:00
committed by Chris Speciale
parent a9f72d65d9
commit 12d3ee5916

View File

@@ -1074,6 +1074,11 @@ namespace lime {
writeBufferPosition[handle] = 0;
writeBufferSize[handle] = 0;
CURLcode setopt_result = curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
if(setopt_result != CURLE_OK) {
printf("Failed to set CURLOPT_ACCEPT_ENCODING: %s\n", curl_easy_strerror(setopt_result));
}
curl_gc_mutex.Unlock ();
return handle;
@@ -1125,6 +1130,11 @@ namespace lime {
writeBufferPosition[handle] = 0;
writeBufferSize[handle] = 0;
CURLcode setopt_result = curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
if(setopt_result != CURLE_OK) {
printf("Failed to set CURLOPT_ACCEPT_ENCODING: %s\n", curl_easy_strerror(setopt_result));
}
curl_gc_mutex.Unlock ();
return handle;
@@ -2889,4 +2899,4 @@ extern "C" int lime_curl_register_prims () {
return 0;
}
}