mirror of
https://github.com/minio/minio.git
synced 2025-01-14 00:05:02 -05:00
If anonymous mode is set avoid verifying signature at lower level
This commit is contained in:
parent
97cc446af8
commit
9a01026a78
@ -22,9 +22,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/minio/minio/pkg/fs"
|
|
||||||
"github.com/minio/minio-xl/pkg/crypto/sha256"
|
"github.com/minio/minio-xl/pkg/crypto/sha256"
|
||||||
"github.com/minio/minio-xl/pkg/probe"
|
"github.com/minio/minio-xl/pkg/probe"
|
||||||
|
"github.com/minio/minio/pkg/fs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ListMultipartUploadsHandler - GET Bucket (List Multipart uploads)
|
// 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
|
// This implementation of the PUT operation creates a new bucket for authenticated request
|
||||||
func (api API) PutBucketHandler(w http.ResponseWriter, req *http.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'
|
// read from 'x-amz-acl'
|
||||||
aclType := getACLType(req)
|
aclType := getACLType(req)
|
||||||
if aclType == unsupportedACLType {
|
if aclType == unsupportedACLType {
|
||||||
|
Loading…
Reference in New Issue
Block a user