Browse Source

keep 204 response

pull/1358/head
Rinat Shigapov 5 years ago
parent
commit
283b749ff1
  1. 6
      weed/s3api/s3api_object_handlers.go

6
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 { for k, v := range proxyResponse.Header {
w.Header()[k] = v w.Header()[k] = v
} }
if proxyResponse.StatusCode == http.StatusNotFound {
writeErrorResponse(w, ErrNoSuchKey, r.URL)
return
}
w.WriteHeader(proxyResponse.StatusCode)
w.WriteHeader(http.StatusNoContent)
}) })
} }

Loading…
Cancel
Save