From 9a01026a782603cad0ea6c5ad059d4ab451ce379 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 16 Oct 2015 13:47:44 -0700 Subject: [PATCH] If anonymous mode is set avoid verifying signature at lower level --- bucket-handlers.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bucket-handlers.go b/bucket-handlers.go index 5e7c55603..c2ed8d9c7 100644 --- a/bucket-handlers.go +++ b/bucket-handlers.go @@ -22,9 +22,9 @@ import ( "net/http" "github.com/gorilla/mux" - "github.com/minio/minio/pkg/fs" "github.com/minio/minio-xl/pkg/crypto/sha256" "github.com/minio/minio-xl/pkg/probe" + "github.com/minio/minio/pkg/fs" ) // ListMultipartUploadsHandler - GET Bucket (List Multipart uploads) @@ -141,11 +141,6 @@ func (api API) ListBucketsHandler(w http.ResponseWriter, req *http.Request) { // ---------- // This implementation of the PUT operation creates a new bucket for authenticated request func (api API) PutBucketHandler(w http.ResponseWriter, req *http.Request) { - if _, err := stripAccessKeyID(req.Header.Get("Authorization")); err != nil { - writeErrorResponse(w, req, AccessDenied, req.URL.Path) - return - } - // read from 'x-amz-acl' aclType := getACLType(req) if aclType == unsupportedACLType {