From e33e41dce0f98237a737ef949d9bb65150eb513c Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sat, 7 Oct 2023 03:31:42 +0000 Subject: [PATCH] Fixed ETag parsing at completing the Multipart upload part --- src/curl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/curl.cpp b/src/curl.cpp index 3419f5f0c3..c28580fd27 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -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;