aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerlin Gaillard <merlin@gaillard.pl>2021-04-09 12:13:19 +0200
committerMerlin Gaillard <merlin@gaillard.pl>2021-04-09 12:13:19 +0200
commit4d4acc715e517ae8f7cdaed220908dbd8e0b7773 (patch)
tree2bd24cf9ab2c7776fe8eb66a9bfd9ef18e5af709
parentb06c5b9d9907063fb4a3fddbcce1cfcc67be38d9 (diff)
downloadseaweedfs-4d4acc715e517ae8f7cdaed220908dbd8e0b7773.tar.xz
seaweedfs-4d4acc715e517ae8f7cdaed220908dbd8e0b7773.zip
s3api: handle 304 response code from filer
-rw-r--r--weed/s3api/s3api_object_handlers.go2
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