mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-23 18:49:17 +08:00
set proxied request content length
This commit is contained in:
parent
35fd1e1c9a
commit
6845e25318
@ -161,6 +161,9 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, des
|
||||
for header, values := range r.Header {
|
||||
proxyReq.Header[header] = values
|
||||
}
|
||||
if proxyReq.ContentLength == 0 && r.ContentLength != 0 {
|
||||
proxyReq.ContentLength = r.ContentLength
|
||||
}
|
||||
|
||||
// ensure that the Authorization header is overriding any previous
|
||||
// Authorization header which might be already present in proxyReq
|
||||
|
Loading…
Reference in New Issue
Block a user