StatBucket() should honor http.StatusMovedPermanently returned by S3

This commit is contained in:
Harshavardhana
2015-04-13 04:13:39 -07:00
parent 35a3af3d38
commit 539b073147
2 changed files with 2 additions and 0 deletions
+2
View File
@@ -112,6 +112,8 @@ func (c *s3Client) StatBucket(bucket string) error {
case http.StatusNotFound:
return iodine.New(client.BucketNotFound{Bucket: bucket}, nil)
case http.StatusOK:
fallthrough
case http.StatusMovedPermanently:
return nil
default:
return iodine.New(NewError(res), nil)