mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-06-28 15:41:13 +08:00
Add content length to filer's requests (#6489)
This commit is contained in:
parent
250fbbb3db
commit
9f42ce3f01
@ -129,6 +129,7 @@ func (s3a *S3ApiServer) putToFiler(r *http.Request, uploadUrl string, dataReader
|
|||||||
query.Add("collection", s3a.getCollectionName(bucket))
|
query.Add("collection", s3a.getCollectionName(bucket))
|
||||||
proxyReq.URL.RawQuery = query.Encode()
|
proxyReq.URL.RawQuery = query.Encode()
|
||||||
}
|
}
|
||||||
|
proxyReq.ContentLength = r.ContentLength
|
||||||
|
|
||||||
for header, values := range r.Header {
|
for header, values := range r.Header {
|
||||||
for _, value := range values {
|
for _, value := range values {
|
||||||
|
Loading…
Reference in New Issue
Block a user