Method not allowed is right response for DELETE() operations and add tests

This commit is contained in:
Harshavardhana
2015-07-16 14:08:33 -07:00
parent 52f21e6696
commit e605787e65
4 changed files with 59 additions and 2 deletions

View File

@@ -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)
}