mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-05-04 05:27:48 +08:00
s3api should return 500 code from filer (#4699)
This commit is contained in:
parent
7ab8c6976e
commit
51bcc219ea
@ -416,6 +416,11 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, des
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if resp.StatusCode == http.StatusInternalServerError {
|
||||||
|
s3err.WriteErrorResponse(w, r, s3err.ErrInternalError)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// when HEAD a directory, it should be reported as no such key
|
// when HEAD a directory, it should be reported as no such key
|
||||||
// https://github.com/seaweedfs/seaweedfs/issues/3457
|
// https://github.com/seaweedfs/seaweedfs/issues/3457
|
||||||
if resp.ContentLength == -1 && resp.StatusCode != http.StatusNotModified {
|
if resp.ContentLength == -1 && resp.StatusCode != http.StatusNotModified {
|
||||||
|
Loading…
Reference in New Issue
Block a user