🎨 Improve data sync cloud storage availability check logic https://github.com/siyuan-note/siyuan/pull/10206

This commit is contained in:
Daniel 2024-01-17 16:51:01 +08:00
parent 77db5c6ca2
commit 739e0754ba
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -100,10 +100,6 @@ func isOnline(checkURL string, skipTlsVerify bool) (ret bool) {
for i := 0; i < 3; i++ {
resp, err := c.R().Get(checkURL)
if 401 == resp.StatusCode {
// Improve data sync cloud storage availability check logic https://github.com/siyuan-note/siyuan/pull/10206
return true
}
if resp.GetHeader("Location") != "" {
return true