Update diskSettings.cpp

This commit is contained in:
xiaolei565 2023-08-28 12:37:54 +08:00 committed by GitHub
parent 8d2c03ea26
commit 58a1160095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,7 @@ std::unique_ptr<S3::Client> getClient(
{
String endpoint = context->getMacros()->expand(config.getString(config_prefix + ".endpoint"));
S3::URI uri(endpoint);
if(!uri.key.ends_with('/'))
uri.key.push_back('/');