From 739e0754ba18a5ae6e0a283d6ebd4198789f07e0 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 17 Jan 2024 16:51:01 +0800 Subject: [PATCH] :art: Improve data sync cloud storage availability check logic https://github.com/siyuan-note/siyuan/pull/10206 --- kernel/util/net.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/util/net.go b/kernel/util/net.go index d1dbc80d518..f24f97ab9be 100644 --- a/kernel/util/net.go +++ b/kernel/util/net.go @@ -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