diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-03-17 11:56:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-17 11:56:56 -0700 |
| commit | aa5179ce3c5ad92887dcddaa59a7f17868fb5bb2 (patch) | |
| tree | ba13f96d6e9054af9cf89c2ba8ef39c91e5cb065 | |
| parent | 04604b89e1da28d45e9f88bd0fe6ae0fb091e324 (diff) | |
| parent | bf94149920456cd0754c54b01a23015893406888 (diff) | |
| download | seaweedfs-aa5179ce3c5ad92887dcddaa59a7f17868fb5bb2.tar.xz seaweedfs-aa5179ce3c5ad92887dcddaa59a7f17868fb5bb2.zip | |
Merge pull request #1918 from kmlebedev/dir_slash_not_exist
dir + slash key does not exist
| -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 2b6b80f90..b3cfd9ec7 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) && !strings.HasSuffix(destUrl, "/") { + if resp.ContentLength == -1 || resp.StatusCode == 404 { if r.Method != "DELETE" { writeErrorResponse(w, s3err.ErrNoSuchKey, r.URL) return |
