mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 18:50:50 +00:00
fix httplib PostFile method
This commit is contained in:
parent
8f3d1c5f42
commit
eea20f6ceb
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user