Skip to content

Commit aab39dc

Browse files
committed
fix infinite redirects
1 parent 676b0d6 commit aab39dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private function extract(RequestInterface $request, ResponseInterface $response,
6464

6565
$extractor = $this->extractorFactory->createExtractor($uri, $request, $response, $this->crawler);
6666

67-
if (!$extractor->redirect) {
67+
if (!$redirect || !$extractor->redirect) {
6868
return $extractor;
6969
}
7070

0 commit comments

Comments
 (0)