Skip to content

Commit

Permalink
Merge pull request minio#60 from harshavardhana/pr_out_minor_change_i…
Browse files Browse the repository at this point in the history
…n_acl_value

Minor change in ACL value
  • Loading branch information
Harshavardhana committed May 21, 2015
2 parents e40193b + e1ba700 commit 83fd992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (h bucketHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
case r.URL.Path == h.resource:
_, ok := r.URL.Query()["acl"]
if ok {
if r.Header.Get("x-amz-acl") != "public" {
if r.Header.Get("x-amz-acl") != "public-read-write" {
w.WriteHeader(http.StatusNotImplemented)
}
}
Expand Down Expand Up @@ -105,7 +105,7 @@ func TestBucketOperations(t *testing.T) {
t.Errorf("Error")
}

err = a.SetBucketACL("bucket", "public")
err = a.SetBucketACL("bucket", "public-read-write")
if err != nil {
t.Errorf("Error")
}
Expand Down

0 comments on commit 83fd992

Please sign in to comment.