diff options
Diffstat (limited to 'weed/util/http_util.go')
| -rw-r--r-- | weed/util/http_util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 00dac26f7..783ff2379 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -309,7 +309,7 @@ func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, is } defer CloseResponse(r) if r.StatusCode >= 400 { - retryable = r.StatusCode >= 500 + retryable = r.StatusCode == http.StatusNotFound || r.StatusCode >= 500 return retryable, fmt.Errorf("%s: %s", fileUrl, r.Status) } |
