Skip to content

Commit

Permalink
🎨 Improve data sync cloud storage availability check logic #10206
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 17, 2024
1 parent 77db5c6 commit 739e075
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kernel/util/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 739e075

Please sign in to comment.