Run gosimple against codebase (#12928)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d7649fbf31
Коммит
7a665aacdd
@@ -633,7 +633,7 @@ func (a *App) OriginChecker() func(*http.Request) bool {
|
||||
|
||||
func (s *Server) checkPushNotificationServerUrl() {
|
||||
notificationServer := *s.Config().EmailSettings.PushNotificationServer
|
||||
if strings.HasPrefix(notificationServer, "http://") == true {
|
||||
if strings.HasPrefix(notificationServer, "http://") {
|
||||
mlog.Warn("Your push notification server is configured with HTTP. For improved security, update to HTTPS in your configuration.")
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user