mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +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,11 +100,11 @@ func isOnline(checkURL string, skipTlsVerify bool) (ret bool) {
|
|||
|
||||
for i := 0; i < 3; i++ {
|
||||
resp, err := c.R().Get(checkURL)
|
||||
|
||||
if resp.StatusCode == 401 {
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue