diff options
| author | Konstantin Lebedev <lebedev_k@tochka.com> | 2021-03-17 23:41:34 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <lebedev_k@tochka.com> | 2021-03-17 23:41:34 +0500 |
| commit | bf94149920456cd0754c54b01a23015893406888 (patch) | |
| tree | ba13f96d6e9054af9cf89c2ba8ef39c91e5cb065 | |
| parent | c5705e7a35b4097a2026ad9da2fd5ca88a16492d (diff) | |
| download | seaweedfs-bf94149920456cd0754c54b01a23015893406888.tar.xz seaweedfs-bf94149920456cd0754c54b01a23015893406888.zip | |
add line
| -rw-r--r-- | weed/s3api/s3api_object_handlers.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index 56f50ddce..b3cfd9ec7 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -310,6 +310,7 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, des return } defer util.CloseResponse(resp) + if resp.ContentLength == -1 || resp.StatusCode == 404 { if r.Method != "DELETE" { writeErrorResponse(w, s3err.ErrNoSuchKey, r.URL) |
