Merge pull request #907 from harshavardhana/anonymous
If anonymous mode is set avoid verifying signature at lower level
This commit is contained in:
commit
8fb45e92f9
1 changed files with 1 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue