curl encoding support added
This commit is contained in:
committed by
Chris Speciale
parent
a9f72d65d9
commit
12d3ee5916
@@ -1074,6 +1074,11 @@ namespace lime {
|
|||||||
writeBufferPosition[handle] = 0;
|
writeBufferPosition[handle] = 0;
|
||||||
writeBufferSize[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 ();
|
curl_gc_mutex.Unlock ();
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
@@ -1125,6 +1130,11 @@ namespace lime {
|
|||||||
writeBufferPosition[handle] = 0;
|
writeBufferPosition[handle] = 0;
|
||||||
writeBufferSize[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 ();
|
curl_gc_mutex.Unlock ();
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
@@ -2889,4 +2899,4 @@ extern "C" int lime_curl_register_prims () {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user