Corrected Seoul S3 Website Endpoint
This commit is contained in:
parent
ec1ee7f2be
commit
d2861be48e
|
@ -1105,9 +1105,9 @@ func WebsiteEndpoint(bucket string, region string) *S3Website {
|
|||
func WebsiteDomainUrl(region string) string {
|
||||
region = normalizeRegion(region)
|
||||
|
||||
// Frankfurt(and probably future) regions uses different syntax for website endpoints
|
||||
// New regions uses different syntax for website endpoints
|
||||
// http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html
|
||||
if region == "eu-central-1" || region == "ap-south-1" {
|
||||
if region == "eu-central-1" || region == "ap-south-1" || region == "ap-northeast-2" {
|
||||
return fmt.Sprintf("s3-website.%s.amazonaws.com", region)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue