Curl fix for compatibility with old libcurl versions.

This commit is contained in:
lotodore
2009-03-21 22:09:46 +00:00
parent 8f3f2b5456
commit 9cc9b75e89
+1 -1
View File
@@ -57,7 +57,7 @@ UploadHelper::InternalInit(const string &/*url*/, const string &targetFileName,
// Assume that the following calls never fail.
curl_easy_setopt(GetData()->curlHandle, CURLOPT_READFUNCTION, readFunction);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_READDATA, GetData()->targetFile);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)filesize);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_INFILESIZE, (curl_off_t)filesize);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_USERPWD, GetData()->userCredentials.c_str());
curl_easy_setopt(GetData()->curlHandle, CURLOPT_UPLOAD, 1L);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_PUT, 1L);