mirror of
https://github.com/minio/minio.git
synced 2026-11-22 15:13:48 +00:00
Method not allowed is right response for DELETE() operations and add tests
This commit is contained in:
1 parent
52f21e6696
commit
e605787e65
4 files changed
+59
-2
No files matched your search
@@ -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