Skip to content

Commit 8fdeb39

Browse files
committed
Actually use slashes in S3
allow
1 parent 72b41a3 commit 8fdeb39

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/toolkit/Aws.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ ExternalBlockStorageAws::~ExternalBlockStorageAws() = default;
5858
auto ExternalBlockStorageAws::put(
5959
std::string const &identifier, void const *data, size_t len) -> std::string
6060
{
61-
auto sanitized = identifier;
62-
ExternalBlockStorage::sanitizeString(sanitized);
61+
auto sanitized = !identifier.empty() && identifier.at(0) == '/'
62+
? identifier.substr(1)
63+
: identifier;
6364

6465
Aws::S3::Model::PutObjectRequest put_request;
6566
put_request.SetBucket(m_bucketName);

0 commit comments

Comments
 (0)