From 781279e5e031ded28b83706fae16f358b43962d9 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 3 Oct 2025 15:55:56 +0200 Subject: empty arrays should not trigger retries either but empty pages should still --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 4d4175f..e5b284c 100644 --- a/it_url.class +++ b/it_url.class @@ -170,7 +170,7 @@ function _get($p = []) static function retry_warranted($result, $status) { - return $result ? it::match(self::$forceretry, $status) : !it::match('^(204|4..)$', $status); + return $result || $result === [] ? it::match(self::$forceretry, $status) : !it::match('^(204|4..)$', $status); } function parse_http_header($header) -- cgit v1.2.3