mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-23 13:58:24 +00:00
Convert storage class values to uppercase (#1704)
AWS requires uppercase values. Fixes a regression from bbcccd6e9816ebb16ca33d2003d563b24625a053. References #1613.
This commit is contained in:
parent
8948eded09
commit
1965916f7a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user