Corrected Seoul S3 Website Endpoint

This commit is contained in:
Alexander Ekdahl 2016-09-24 17:43:58 +09:00 committed by GitHub
parent ec1ee7f2be
commit d2861be48e
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}