Add content length to filer's requests (#6489)

This commit is contained in:
Hadi Zamani 2025-01-29 20:23:39 +03:30 committed by GitHub
parent 250fbbb3db
commit 9f42ce3f01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {