Merge pull request #3993 from skanger/develop

fix httplib PostFile method
This commit is contained in:
Ming Deng 2020-06-01 22:05:01 +08:00 committed by GitHub
commit db2a1134ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -407,6 +407,7 @@ func (b *BeegoHTTPRequest) buildURL(paramBody string) {
}()
b.Header("Content-Type", bodyWriter.FormDataContentType())
b.req.Body = ioutil.NopCloser(pr)
b.Header("Transfer-Encoding", "chunked")
return
}