Skip to content

Commit 549507e

Browse files
authored
Update S3 plugin for Amazon REST change (#796)
1 parent 24c8095 commit 549507e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/s3/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func validBucketName(v string) bool {
6363
}
6464

6565
func clientUsesPathBuckets(err error) bool {
66-
return !strings.Contains(err.Error(), "301 response missing Location header")
66+
return !(strings.Contains(err.Error(), "301 response missing Location header") || strings.Contains(err.Error(), "Please send all future requests to this endpoint"))
6767
}
6868

6969
func main() {

0 commit comments

Comments
 (0)