req is nil with Client.Do

This commit is contained in:
eson 2018-12-18 01:09:29 +08:00
parent 28d4c9a297
commit 2307e6eb10

View File

@ -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)
}