diff options
Diffstat (limited to 'api/command.go')
-rw-r--r-- | api/command.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/command.go b/api/command.go index e1c576bba..953340ccc 100644 --- a/api/command.go +++ b/api/command.go @@ -203,6 +203,7 @@ func executeCommand(c *Context, w http.ResponseWriter, r *http.Request) { handleResponse(c, w, response, channelId, cmd, false) } } else { + defer resp.Body.Close() body, _ := ioutil.ReadAll(resp.Body) c.Err = model.NewLocAppError("command", "api.command.execute_command.failed_resp.app_error", map[string]interface{}{"Trigger": trigger, "Status": resp.Status}, string(body)) } |