|
|
|
@ -23,7 +23,6 @@ import ( |
|
|
|
|
|
|
|
|
|
humanize "github.com/dustin/go-humanize" |
|
|
|
|
"github.com/gorilla/mux" |
|
|
|
|
xhttp "github.com/minio/minio/cmd/http" |
|
|
|
|
"github.com/minio/minio/cmd/logger" |
|
|
|
|
"github.com/minio/minio/pkg/bucket/policy" |
|
|
|
|
"github.com/minio/minio/pkg/bucket/versioning" |
|
|
|
@ -52,12 +51,6 @@ func (api objectAPIHandlers) PutBucketVersioningHandler(w http.ResponseWriter, r |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// PutBucketVersioning API requires Content-Md5
|
|
|
|
|
if _, ok := r.Header[xhttp.ContentMD5]; !ok { |
|
|
|
|
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingContentMD5), r.URL, guessIsBrowserReq(r)) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if s3Error := checkRequestAuthType(ctx, r, policy.PutBucketVersioningAction, bucket, ""); s3Error != ErrNone { |
|
|
|
|
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL, guessIsBrowserReq(r)) |
|
|
|
|
return |
|
|
|
|