summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2025-10-03 15:55:56 +0200
committerUrban Müller2025-10-03 15:55:56 +0200
commit781279e5e031ded28b83706fae16f358b43962d9 (patch)
tree9cf83cf9da227adee4e77714a68419f318550cfe
parent76f18b1cf62d04ae335a476ae241499f24b73fdc (diff)
downloaditools-781279e5e031ded28b83706fae16f358b43962d9.tar.gz
itools-781279e5e031ded28b83706fae16f358b43962d9.tar.bz2
itools-781279e5e031ded28b83706fae16f358b43962d9.zip
empty arrays should not trigger retries either but empty pages should stillHEADmaster
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
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)