Skip to content

Commit

Permalink
Automatic AWS endpoint selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ramondeklein committed Dec 18, 2024
1 parent 022071e commit 488f1cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 82 deletions.
79 changes: 0 additions & 79 deletions Minio/AWSS3Endpoints.cs

This file was deleted.

5 changes: 2 additions & 3 deletions Minio/Helper/RequestUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ internal static Uri MakeTargetURL(string endPoint, bool secure, string bucketNam
{
// For Amazon S3 endpoint, try to fetch location based endpoint.
var host = endPoint;
if (S3utils.IsAmazonEndPoint(endPoint))
// Fetch new host based on the bucket location.
host = AWSS3Endpoints.Endpoint(region);
if (S3utils.IsAmazonEndPoint(endPoint) && !string.IsNullOrEmpty(region))
host = $"s3.{region}.amazonaws.com";

if (!usePathStyle)
{
Expand Down

0 comments on commit 488f1cc

Please sign in to comment.