This commit is contained in:
eson 2018-12-18 01:06:21 +08:00
parent 18de9c2c1f
commit 28d4c9a297

View File

@ -312,6 +312,9 @@ func (wf *Workflow) Execute() (*Response, error) {
return nil, err
}
defer req.Body.Close()
rbody, err := req.GetBody()
if err == nil {
rbody.Close()
}
return FromHTTPResponse(resp)
}