Skip to content

Commit 607c6a9

Browse files
Merge pull request #263 from mdupras/hotfix/mdupras/262-s3-endpoint-region
Added AuthenticationRegion to AmazonS3Client Endpoint based clients
2 parents b1c5e2f + f8f5047 commit 607c6a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ImageSharp.Web.Providers.AWS/AmazonS3ClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static AmazonS3Client CreateClient(IAWSS3BucketClientOptions options)
2323
{
2424
// AccessKey can be empty.
2525
// AccessSecret can be empty.
26-
AmazonS3Config config = new() { ServiceURL = options.Endpoint, ForcePathStyle = true };
26+
AmazonS3Config config = new() { ServiceURL = options.Endpoint, ForcePathStyle = true, AuthenticationRegion = options.Region };
2727
return new AmazonS3Client(options.AccessKey, options.AccessSecret, config);
2828
}
2929
else if (!string.IsNullOrWhiteSpace(options.AccessKey))

0 commit comments

Comments
 (0)