fix httplib PostFile method

This commit is contained in:
skanger 2020-05-16 11:00:15 +08:00
parent 8f3d1c5f42
commit eea20f6ceb
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.Header("Content-Type", bodyWriter.FormDataContentType())
b.req.Body = ioutil.NopCloser(pr) b.req.Body = ioutil.NopCloser(pr)
b.Header("Transfer-Encoding", "chunked")
return return
} }