mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-27 15:30:45 +01:00
keep 204 response
This commit is contained in:
1 parent
fafc41a27f
commit
283b749ff1
1 file changed
+1
-5
@@ -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)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user