Skip to content

Commit

Permalink
Change client init
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Sep 24, 2024
1 parent 9c670df commit 9b76b75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/s3plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,22 +760,22 @@ int driver_connect()
// Initialisation du SDK AWS
Aws::InitAPI(options);

Aws::Client::ClientConfiguration clientConfig;
Aws::Client::ClientConfiguration clientConfig(true, "legacy", true);
clientConfig.allowSystemProxy = getenv("http_proxy") != NULL || getenv("https_proxy") != NULL ||
getenv("HTTP_PROXY") != NULL || getenv("HTTPS_PROXY") != NULL || getenv("S3_ALLOW_SYSTEM_PROXY");
clientConfig.verifySSL = false;

// Force HTTP1.1 since S3 service doesn't support HTTP2 yet!
clientConfig.version = Aws::Http::Version::HTTP_VERSION_1_1;
if (s3endpoint != "")
{
clientConfig.endpointOverride = std::move(s3endpoint);
}
/*
if (s3region != "")
{
clientConfig.region = s3region;
}
*/

if (!s3accessKey.empty())
{
configCredentials = Aws::Auth::AWSCredentials(s3accessKey, s3secretKey);
Expand Down

0 comments on commit 9b76b75

Please sign in to comment.