diff --git a/src/Crawler.php b/src/Crawler.php index cfcfb12..19c2b0b 100644 --- a/src/Crawler.php +++ b/src/Crawler.php @@ -111,7 +111,7 @@ public function crawl(string $url): CrawledResult $httpCode = $httpResponse->getHttpCode(); $headers = $httpResponse->getHeaders(); - if ($httpCode > 300 && $httpCode < 399 && isset($headers['Location']) === true) { + if ($httpCode >= 300 && $httpCode <= 399 && isset($headers['Location']) === true) { $this->addUrl(RelativeUrlToAbsoluteUrl::process($crawledUrl, $headers['Location'])); }