diff options
| author | Merlin Gaillard <merlin@gaillard.pl> | 2021-04-09 12:13:19 +0200 |
|---|---|---|
| committer | Merlin Gaillard <merlin@gaillard.pl> | 2021-04-09 12:13:19 +0200 |
| commit | 4d4acc715e517ae8f7cdaed220908dbd8e0b7773 (patch) | |
| tree | 2bd24cf9ab2c7776fe8eb66a9bfd9ef18e5af709 | |
| parent | b06c5b9d9907063fb4a3fddbcce1cfcc67be38d9 (diff) | |
| download | seaweedfs-4d4acc715e517ae8f7cdaed220908dbd8e0b7773.tar.xz seaweedfs-4d4acc715e517ae8f7cdaed220908dbd8e0b7773.zip | |
s3api: handle 304 response code from filer
| -rw-r--r-- | weed/s3api/s3api_object_handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index b3cfd9ec7..f1a539ac5 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -311,7 +311,7 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, des } defer util.CloseResponse(resp) - if resp.ContentLength == -1 || resp.StatusCode == 404 { + if (resp.ContentLength == -1 || resp.StatusCode == 404) && resp.StatusCode != 304 { if r.Method != "DELETE" { writeErrorResponse(w, s3err.ErrNoSuchKey, r.URL) return |
