use INFILE_LARGE

git-svn-id: http://s3fs.googlecode.com/svn/trunk@56 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
rrizun 2008-02-18 16:50:07 +00:00
parent d1a349b050
commit 0c0c26fdc8
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ put_local_fd(const char* path, headers_t meta, int fd) {
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writeCallback);
curl_easy_setopt(curl, CURLOPT_UPLOAD, true); // HTTP PUT
curl_easy_setopt(curl, CURLOPT_INFILESIZE, st.st_size); // Content-Length
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, static_cast<curl_off_t>(st.st_size)); // Content-Length
FILE* f = fdopen(fd, "rb");
if (f == 0)