From 77a1dc1f2f12198881c00356a04dddef126b985d Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 22 Nov 2017 09:15:03 -0600 Subject: HTTP client refactor (#7884) * http client refactor * simplification --- app/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/command.go') diff --git a/app/command.go b/app/command.go index 8bd025c8e..aefdf6a73 100644 --- a/app/command.go +++ b/app/command.go @@ -221,7 +221,7 @@ func (a *App) ExecuteCommand(args *model.CommandArgs) (*model.CommandResponse, * req.Header.Set("Content-Type", "application/x-www-form-urlencoded") } - if resp, err := utils.HttpClient(false).Do(req); err != nil { + if resp, err := a.HTTPClient(false).Do(req); err != nil { return nil, model.NewAppError("command", "api.command.execute_command.failed.app_error", map[string]interface{}{"Trigger": trigger}, err.Error(), http.StatusInternalServerError) } else { if resp.StatusCode == http.StatusOK { -- cgit v1.2.3-1-g7c22