summaryrefslogtreecommitdiffstats
path: root/app/webhook.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-11-22 09:15:03 -0600
committerHarrison Healey <harrisonmhealey@gmail.com>2017-11-22 10:15:03 -0500
commit77a1dc1f2f12198881c00356a04dddef126b985d (patch)
tree09b5510bb744d0d9e5056783dc7522c5641ec788 /app/webhook.go
parentcf9cd6a4b6bea717884269879ee8a3ced475ee8a (diff)
downloadchat-77a1dc1f2f12198881c00356a04dddef126b985d.tar.gz
chat-77a1dc1f2f12198881c00356a04dddef126b985d.tar.bz2
chat-77a1dc1f2f12198881c00356a04dddef126b985d.zip
HTTP client refactor (#7884)
* http client refactor * simplification
Diffstat (limited to 'app/webhook.go')
-rw-r--r--app/webhook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/webhook.go b/app/webhook.go
index 41a789ead..3f8f035f7 100644
--- a/app/webhook.go
+++ b/app/webhook.go
@@ -106,7 +106,7 @@ func (a *App) TriggerWebhook(payload *model.OutgoingWebhookPayload, hook *model.
req, _ := http.NewRequest("POST", url, body)
req.Header.Set("Content-Type", contentType)
req.Header.Set("Accept", "application/json")
- if resp, err := utils.HttpClient(false).Do(req); err != nil {
+ if resp, err := a.HTTPClient(false).Do(req); err != nil {
l4g.Error(utils.T("api.post.handle_webhook_events_and_forget.event_post.error"), err.Error())
} else {
defer consumeAndClose(resp)