diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-09-25 02:35:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-25 02:35:00 -0700 |
| commit | 22049dc2e6b426839d47584bb1584d89ebc8cb2e (patch) | |
| tree | 9dffbc73c9db9a6b74b84698b749f63bd2d33969 | |
| parent | 8516517c48e8d90877a8160f0a5ed16b33341b54 (diff) | |
| parent | 402aef8f301403f46b702fbbb63d179caa2b72f3 (diff) | |
| download | seaweedfs-22049dc2e6b426839d47584bb1584d89ebc8cb2e.tar.xz seaweedfs-22049dc2e6b426839d47584bb1584d89ebc8cb2e.zip | |
Merge pull request #1491 from hilimd/master
s3: fix get object metadata problem
| -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 13fae72a3..93d6db79f 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -265,7 +265,7 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, des resp, postErr := client.Do(proxyReq) - if resp.ContentLength == -1 { + if resp.ContentLength == -1 && !strings.HasSuffix(destUrl, "/") { writeErrorResponse(w, s3err.ErrNoSuchKey, r.URL) return } |
