aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_object_handlers_put.go
diff options
context:
space:
mode:
authorHadi Zamani <130847170+hadizamani021@users.noreply.github.com>2025-01-29 20:23:39 +0330
committerGitHub <noreply@github.com>2025-01-29 08:53:39 -0800
commit9f42ce3f01468317870c0c37f3a0ebf986a504f9 (patch)
treefdd788b11dafe0d0cf0548e0654c61cef86fd911 /weed/s3api/s3api_object_handlers_put.go
parent250fbbb3dbe921480ed5022379ed78c7bc164469 (diff)
downloadseaweedfs-9f42ce3f01468317870c0c37f3a0ebf986a504f9.tar.xz
seaweedfs-9f42ce3f01468317870c0c37f3a0ebf986a504f9.zip
Add content length to filer's requests (#6489)
Diffstat (limited to 'weed/s3api/s3api_object_handlers_put.go')
-rw-r--r--weed/s3api/s3api_object_handlers_put.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/s3api/s3api_object_handlers_put.go b/weed/s3api/s3api_object_handlers_put.go
index 9e3f5d9d9..d1b74443c 100644
--- a/weed/s3api/s3api_object_handlers_put.go
+++ b/weed/s3api/s3api_object_handlers_put.go
@@ -129,6 +129,7 @@ func (s3a *S3ApiServer) putToFiler(r *http.Request, uploadUrl string, dataReader
query.Add("collection", s3a.getCollectionName(bucket))
proxyReq.URL.RawQuery = query.Encode()
}
+ proxyReq.ContentLength = r.ContentLength
for header, values := range r.Header {
for _, value := range values {