aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
Diffstat (limited to 'weed')
-rw-r--r--weed/s3api/s3api_object_handlers.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go
index 7c6eaeb70..87c3ce705 100644
--- a/weed/s3api/s3api_object_handlers.go
+++ b/weed/s3api/s3api_object_handlers.go
@@ -112,11 +112,7 @@ func (s3a *S3ApiServer) DeleteObjectHandler(w http.ResponseWriter, r *http.Reque
for k, v := range proxyResponse.Header {
w.Header()[k] = v
}
- if proxyResponse.StatusCode == http.StatusNotFound {
- writeErrorResponse(w, ErrNoSuchKey, r.URL)
- return
- }
- w.WriteHeader(proxyResponse.StatusCode)
+ w.WriteHeader(http.StatusNoContent)
})
}