Fixed ETag parsing at completing the Multipart upload part
This commit is contained in:
committed by
Andrew Gaul
parent
e5b15bed7d
commit
5e5b4f0a49
@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user