mirror of
https://github.com/goharbor/harbor
synced 2025-04-08 08:11:52 +00:00
Merge pull request #5393 from steven-zou/fix_content_length_issue
Set the content length to -1 to let the reader read all the uploading…
This commit is contained in:
commit
b8c7a8cb68
|
@ -406,7 +406,7 @@ func (cra *ChartRepositoryAPI) rewriteFileContent(files []formFile, request *htt
|
|||
}
|
||||
|
||||
request.Header.Set(headerContentType, w.FormDataContentType())
|
||||
request.ContentLength = int64(body.Len())
|
||||
request.ContentLength = -1
|
||||
request.Body = ioutil.NopCloser(&body)
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user