summaryrefslogtreecommitdiffstats
path: root/app/notification_push.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/notification_push.go')
-rw-r--r--app/notification_push.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/notification_push.go b/app/notification_push.go
index 12d9f5258..517988a97 100644
--- a/app/notification_push.go
+++ b/app/notification_push.go
@@ -184,7 +184,7 @@ func (a *App) sendToPushProxy(msg model.PushNotification, session *model.Session
request, _ := http.NewRequest("POST", strings.TrimRight(*a.Config().EmailSettings.PushNotificationServer, "/")+model.API_URL_SUFFIX_V1+"/send_push", strings.NewReader(msg.ToJson()))
- if resp, err := a.HTTPClient(true).Do(request); err != nil {
+ if resp, err := a.HTTPService.MakeClient(true).Do(request); err != nil {
mlog.Error(fmt.Sprintf("Device push reported as error for UserId=%v SessionId=%v message=%v", session.UserId, session.Id, err.Error()), mlog.String("user_id", session.UserId))
} else {
pushResponse := model.PushResponseFromJson(resp.Body)