aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/util/http_util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go
index 7b3ac4bc4..6f6a17008 100644
--- a/weed/util/http_util.go
+++ b/weed/util/http_util.go
@@ -328,7 +328,7 @@ func ReadUrlAsStreamAuthenticated(fileUrl, jwt string, cipherKey []byte, isConte
}
defer CloseResponse(r)
if r.StatusCode >= 400 {
- retryable = r.StatusCode == http.StatusNotFound || r.StatusCode >= 500
+ retryable = r.StatusCode == http.StatusNotFound || r.StatusCode >= 499
return retryable, fmt.Errorf("%s: %s", fileUrl, r.Status)
}