From 280ed5d706105f0f8276f5753ffa593986990f76 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Fri, 18 Aug 2023 00:35:50 +0900 Subject: [PATCH] Additional fix for #2276(Convert BodyData to std::string) (#2278) --- src/curl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/curl.cpp b/src/curl.cpp index aa6b0a1..d390890 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -4011,7 +4011,7 @@ int S3fsCurl::MultipartListRequest(std::string& body) } int result; - if(0 == (result = RequestPerform()) && 0 < bodydata.size()){ + if(0 == (result = RequestPerform()) && !bodydata.empty()){ body.swap(bodydata); }else{ body = "";