Konstantin Lebedev
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
weed/util/http_util.go
|
@ -328,7 +328,7 @@ func ReadUrlAsStreamAuthenticated(fileUrl, jwt string, cipherKey []byte, isConte |
|
|
} |
|
|
} |
|
|
defer CloseResponse(r) |
|
|
defer CloseResponse(r) |
|
|
if r.StatusCode >= 400 { |
|
|
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) |
|
|
return retryable, fmt.Errorf("%s: %s", fileUrl, r.Status) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|