From eea20f6cebae0d27840d2635c4d06c48a51a3a8b Mon Sep 17 00:00:00 2001 From: skanger <1035661353@qq.com> Date: Sat, 16 May 2020 11:00:15 +0800 Subject: [PATCH] fix httplib PostFile method --- httplib/httplib.go | 1 + 1 file changed, 1 insertion(+) diff --git a/httplib/httplib.go b/httplib/httplib.go index 9d63505f..e094a6a6 100644 --- a/httplib/httplib.go +++ b/httplib/httplib.go @@ -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 }