From 2e315b1b52070bc93ba98d1dadb7ab89d48a7633 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Tue, 18 Dec 2018 00:50:09 +0800 Subject: [PATCH] add request close --- workflow.go | 1 + 1 file changed, 1 insertion(+) diff --git a/workflow.go b/workflow.go index a5da8ad..6469aee 100644 --- a/workflow.go +++ b/workflow.go @@ -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)