Fixed ETag parsing at completing the Multipart upload part

This commit is contained in:
Takeshi Nakatani
2023-10-07 03:31:42 +00:00
committed by Andrew Gaul
parent e5b15bed7d
commit 5e5b4f0a49
6 changed files with 25 additions and 18 deletions

View File

@ -125,6 +125,14 @@ std::string trim(std::string s, const char *t /* = SPACES */)
return trim_left(trim_right(std::move(s), t), t);
}
std::string peeloff(std::string s)
{
if(s.size() < 2 || *s.begin() != '"' || *s.rbegin() != '"'){
return s;
}
return s.substr(1, s.size() - 2);
}
//
// Three url encode functions
//