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

This commit is contained in:
Harshavardhana committed 2015-07-16 14:15:24 -07:00
1 parent 52f21e6696
commit e605787e65
4 files changed
+59 -2

No files matched your search

+2 -2
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)
}