From 2307e6eb10f1e0514ebd4ff842689f81fb4c6042 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Tue, 18 Dec 2018 01:09:29 +0800 Subject: [PATCH] req is nil with Client.Do --- workflow.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/workflow.go b/workflow.go index 82a990e..9bdc002 100644 --- a/workflow.go +++ b/workflow.go @@ -312,9 +312,5 @@ func (wf *Workflow) Execute() (*Response, error) { return nil, err } - rbody, err := req.GetBody() - if err == nil { - rbody.Close() - } return FromHTTPResponse(resp) }