Reply back proper statuses for DeleteBucket/DeleteObject

This commit is contained in:
Harshavardhana
2015-10-16 20:02:37 -07:00
parent f825a32b53
commit 704fa420a3
5 changed files with 12 additions and 6 deletions

View File

@@ -376,8 +376,7 @@ func (api API) AbortMultipartUploadHandler(w http.ResponseWriter, req *http.Requ
}
return
}
setCommonHeaders(w, 0)
w.WriteHeader(http.StatusNoContent)
writeSuccessNoContent(w)
}
// ListObjectPartsHandler - List object parts
@@ -531,4 +530,5 @@ func (api API) DeleteObjectHandler(w http.ResponseWriter, req *http.Request) {
writeErrorResponse(w, req, InternalError, req.URL.Path)
}
}
writeSuccessNoContent(w)
}