diff --git a/lix/libstore/s3-binary-cache-store.cc b/lix/libstore/s3-binary-cache-store.cc index 1e52c08ff..6f3d32dcf 100644 --- a/lix/libstore/s3-binary-cache-store.cc +++ b/lix/libstore/s3-binary-cache-store.cc @@ -134,17 +134,22 @@ S3Helper::S3Helper( const std::string & profile, const std::string & region, const std::string & scheme, - const std::string & endpoint) + const std::string & endpoint +) : config(makeConfig(region, scheme, endpoint)) , client(make_ref( - profile == "" - ? std::dynamic_pointer_cast( - std::make_shared()) - : std::dynamic_pointer_cast( - std::make_shared(profile.c_str())), - *config, - Aws::Client::AWSAuthV4Signer::PayloadSigningPolicy::Never, - endpoint.empty())) + profile == "" ? std::dynamic_pointer_cast( + std::make_shared() + ) + : std::dynamic_pointer_cast( + std::make_shared( + profile.c_str() + ) + ), + *config, + Aws::Client::AWSAuthV4Signer::PayloadSigningPolicy::RequestDependent, + endpoint.empty() + )) { }