Convert storage class values to uppercase (#1704)

AWS requires uppercase values.  Fixes a regression from
bbcccd6e9816ebb16ca33d2003d563b24625a053.  References #1613.
This commit is contained in:
Andrew Gaul 2021-06-30 09:03:31 +09:00 committed by GitHub
parent 8948eded09
commit 1965916f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -775,6 +775,8 @@ std::string S3fsCurl::SetStorageClass(const std::string& storage_class)
{
std::string old = S3fsCurl::storage_class;
S3fsCurl::storage_class = storage_class;
// AWS requires uppercase storage class values
transform(S3fsCurl::storage_class.begin(), S3fsCurl::storage_class.end(), S3fsCurl::storage_class.begin(), ::toupper);
return old;
}