add request close

This commit is contained in:
eson 2018-12-18 00:50:09 +08:00
parent 16859fc78e
commit 2e315b1b52

View File

@ -299,6 +299,7 @@ func setTempCookieRequest(req *http.Request, wf *Workflow) {
func (wf *Workflow) Execute() (*Response, error) {
req := buildBodyRequest(wf)
defer req.Body.Close()
setHeaderRequest(req, wf)
setTempCookieRequest(req, wf)