Skip to content

Commit

Permalink
优化:bark/gotify通道忽略https证书(提高自建服务端兼容性)
Browse files Browse the repository at this point in the history
  • Loading branch information
pppscn committed Jul 24, 2022
1 parent 104a705 commit ca7b351
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) //超时重试的次数
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca7b351

Please sign in to comment.