优化:bark/gotify通道忽略https证书(提高自建服务端兼容性)

This commit is contained in:
pppscn 2022-07-24 22:17:11 +08:00
parent 104a7057ed
commit ca7b351c63
2 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,8 @@ class BarkUtils {
}
}
request.keepJson(true)
request.ignoreHttpsCert() //忽略https证书
.keepJson(true)
.timeOut((SettingUtils.requestTimeout * 1000).toLong()) //超时时间10s
.cacheMode(CacheMode.NO_CACHE)
.retryCount(SettingUtils.requestRetryTimes) //超时重试的次数

View File

@ -52,6 +52,7 @@ class GotifyUtils {
request.params("title", title)
.params("message", content)
.params("priority", setting.priority)
.ignoreHttpsCert() //忽略https证书
.keepJson(true)
.timeOut((SettingUtils.requestTimeout * 1000).toLong()) //超时时间10s
.cacheMode(CacheMode.NO_CACHE)