mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-10 14:50:58 +00:00
Merge pull request #560 from ggtakec/master
Fixed about multipart uploading at no free space related to #509
This commit is contained in:
commit
94ddcb8d4f
@ -3432,8 +3432,13 @@ int S3fsCurl::UploadMultipartPostRequest(const char* tpath, int part_num, const
|
||||
// request
|
||||
if(0 == (result = RequestPerform())){
|
||||
// check etag
|
||||
if(NULL != strstr(headdata->str(), partdata.etag.c_str())){
|
||||
partdata.uploaded = true;
|
||||
headers_t::iterator it = responseHeaders.find("ETag");
|
||||
if (it != responseHeaders.end()) {
|
||||
if(S3fsCurl::is_content_md5 && !etag_equals(it->second, partdata.etag)){
|
||||
result = -1;
|
||||
}else{
|
||||
partdata.uploaded = true;
|
||||
}
|
||||
}else{
|
||||
result = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user