mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🎨 Improve data sync cloud storage availability check logic https://github.com/siyuan-note/siyuan/pull/10206
This commit is contained in:
parent
9c703d0016
commit
77db5c6ca2
1 changed files with 3 additions and 3 deletions
|
|
@ -100,8 +100,8 @@ func isOnline(checkURL string, skipTlsVerify bool) (ret bool) {
|
||||||
|
|
||||||
for i := 0; i < 3; i++ {
|
for i := 0; i < 3; i++ {
|
||||||
resp, err := c.R().Get(checkURL)
|
resp, err := c.R().Get(checkURL)
|
||||||
|
if 401 == resp.StatusCode {
|
||||||
if resp.StatusCode == 401 {
|
// Improve data sync cloud storage availability check logic https://github.com/siyuan-note/siyuan/pull/10206
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue