mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:40:57 +00:00
Merge pull request #3993 from skanger/develop
fix httplib PostFile method
This commit is contained in:
commit
db2a1134ce
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user