From 9cc9b75e890556bc543b769f852413af73b027e0 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sat, 21 Mar 2009 22:09:46 +0000 Subject: [PATCH] Curl fix for compatibility with old libcurl versions. --- src/net/common/uploadhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/common/uploadhelper.cpp b/src/net/common/uploadhelper.cpp index 9661fef2..cea82142 100644 --- a/src/net/common/uploadhelper.cpp +++ b/src/net/common/uploadhelper.cpp @@ -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);