Этот коммит содержится в:
Corey Hulen
2017-02-13 22:20:37 -05:00
коммит произвёл GitHub
родитель 452a7c29a2
Коммит 62e20e98f9

Просмотреть файл

@@ -536,6 +536,7 @@ func sendToPushProxy(msg model.PushNotification) *model.AppError {
tr := &http.Transport{ 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} httpClient := &http.Client{Transport: tr}
request, _ := http.NewRequest("POST", *utils.Cfg.EmailSettings.PushNotificationServer+model.API_URL_SUFFIX_V1+"/send_push", strings.NewReader(msg.ToJson())) request, _ := http.NewRequest("POST", *utils.Cfg.EmailSettings.PushNotificationServer+model.API_URL_SUFFIX_V1+"/send_push", strings.NewReader(msg.ToJson()))