mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-05 04:17:52 +00:00
use INFILE_LARGE
git-svn-id: http://s3fs.googlecode.com/svn/trunk@56 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
d1a349b050
commit
0c0c26fdc8
@ -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_WRITEFUNCTION, writeCallback);
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_UPLOAD, true); // HTTP PUT
|
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");
|
FILE* f = fdopen(fd, "rb");
|
||||||
if (f == 0)
|
if (f == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user