0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-22 01:00:40 +00:00

add public-read acl to redirects

This commit is contained in:
Nathan LaFreniere 2015-12-04 11:31:06 -08:00
parent 2187920d58
commit 07033aa1a0

1
aws.go
View File

@ -238,6 +238,7 @@ func (a *AWS) AddRedirects(redirects map[string]string) error {
_, err := a.client.PutObject(&s3.PutObjectInput{
Bucket: aws.String(a.vargs.Bucket),
Key: aws.String(path),
ACL: aws.String("public-read"),
WebsiteRedirectLocation: aws.String(location),
})