summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-02-13 22:20:37 -0500
committerGitHub <noreply@github.com>2017-02-13 22:20:37 -0500
commit62e20e98f9e22dbac6af80cca9a0494e9f0ea662 (patch)
treec68c227c70d8324e16f5851d33b2034f9e163ccf
parent452a7c29a25fc38d985d6613dd0816f41751231f (diff)
downloadchat-62e20e98f9e22dbac6af80cca9a0494e9f0ea662.tar.gz
chat-62e20e98f9e22dbac6af80cca9a0494e9f0ea662.tar.bz2
chat-62e20e98f9e22dbac6af80cca9a0494e9f0ea662.zip
Fixing push notificaiton (#5394)
-rw-r--r--app/notification.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/notification.go b/app/notification.go
index f2b454b50..fdff13c4f 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -535,7 +535,8 @@ func sendToPushProxy(msg model.PushNotification) *model.AppError {
msg.ServerId = utils.CfgDiagnosticId
tr := &http.Transport{
- TLSClientConfig: &tls.Config{InsecureSkipVerify: *utils.Cfg.ServiceSettings.EnableInsecureOutgoingConnections},
+ TLSClientConfig: &tls.Config{InsecureSkipVerify: *utils.Cfg.ServiceSettings.EnableInsecureOutgoingConnections},
+ DisableKeepAlives: true,
}
httpClient := &http.Client{Transport: tr}
request, _ := http.NewRequest("POST", *utils.Cfg.EmailSettings.PushNotificationServer+model.API_URL_SUFFIX_V1+"/send_push", strings.NewReader(msg.ToJson()))