diff options
| author | limd <limd@sugon.com> | 2020-09-25 14:37:02 +0800 |
|---|---|---|
| committer | limd <limd@sugon.com> | 2020-09-25 14:37:02 +0800 |
| commit | 402aef8f301403f46b702fbbb63d179caa2b72f3 (patch) | |
| tree | 4a873cefd0639961c34e8ecf496e9538f9a581e9 | |
| parent | ed7816681aae57569c64fc0182364ddbc116a3fa (diff) | |
| download | seaweedfs-402aef8f301403f46b702fbbb63d179caa2b72f3.tar.xz seaweedfs-402aef8f301403f46b702fbbb63d179caa2b72f3.zip | |
s3:
1.fix spark reading S3 directory wildcard problem
2.fix the problem of the spark history service writing S3 directory
reference git revsion number: b41b7ea4d09616b42edbad87ab71ac4f2b0fa08c
| -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 } |
