diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
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) |