Additional fix for #2276(Convert BodyData to std::string) (#2278)

This commit is contained in:
Takeshi Nakatani 2023-08-18 00:35:50 +09:00 committed by GitHub
parent 2518ff3568
commit 280ed5d706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 = "";