diff --git a/Minio/MinioClient.cs b/Minio/MinioClient.cs index 06c2946ad..b260b20a8 100644 --- a/Minio/MinioClient.cs +++ b/Minio/MinioClient.cs @@ -297,7 +297,7 @@ internal async Task CreateRequest( { utils.ValidateBucketName(bucketName); // Fetch correct region for bucket if this is not a bucket creation - if (!string.IsNullOrEmpty(objectName) && method != HttpMethod.Put) + if (method != HttpMethod.Put) region = await GetRegion(bucketName).ConfigureAwait(false); }