Skip to content

Commit

Permalink
Fixed ETag parsing at completing the Multipart upload part
Browse files Browse the repository at this point in the history
  • Loading branch information
ggtakec committed Oct 7, 2023
1 parent d0c4b5c commit e33e41d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4232,6 +4232,10 @@ bool S3fsCurl::UploadMultipartPostComplete()
}
}
partdata.petag->etag = it->second;
if(partdata.petag->etag.size() >= 2 && *partdata.petag->etag.begin() == '"' && *partdata.petag->etag.rbegin() == '"'){
partdata.petag->etag.erase(partdata.petag->etag.size() - 1);
partdata.petag->etag.erase(0, 1);
}
partdata.uploaded = true;

return true;
Expand Down

0 comments on commit e33e41d

Please sign in to comment.