1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-24 10:20:19 +00:00

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

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
}