mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
Method not allowed is right response for DELETE() operations and add tests
This commit is contained in:
@@ -580,12 +580,12 @@ func (api Minio) CompleteMultipartUploadHandler(w http.ResponseWriter, req *http
|
||||
|
||||
// DeleteBucketHandler - Delete bucket
|
||||
func (api Minio) DeleteBucketHandler(w http.ResponseWriter, req *http.Request) {
|
||||
error := getErrorCode(NotImplemented)
|
||||
error := getErrorCode(MethodNotAllowed)
|
||||
w.WriteHeader(error.HTTPStatusCode)
|
||||
}
|
||||
|
||||
// DeleteObjectHandler - Delete object
|
||||
func (api Minio) DeleteObjectHandler(w http.ResponseWriter, req *http.Request) {
|
||||
error := getErrorCode(NotImplemented)
|
||||
error := getErrorCode(MethodNotAllowed)
|
||||
w.WriteHeader(error.HTTPStatusCode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user