Skip to content

Commit 06dd757

Browse files
committed
🚿
1 parent 3b704e1 commit 06dd757

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/Psr18/URLExtractorTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use chillerlan\HTTP\Psr18\URLExtractor;
1414
use chillerlan\HTTP\Psr7\Request;
1515
use function defined;
16-
use const CURLOPT_FOLLOWLOCATION;
16+
use const CURLOPT_FOLLOWLOCATION, CURLOPT_MAXREDIRS;
1717

1818
/**
1919
* @group slow
@@ -25,7 +25,10 @@ class URLExtractorTest extends HTTPClientTestAbstract{
2525
protected function setUp():void{
2626
parent::setUp();
2727

28-
$this->options->curl_options = [CURLOPT_FOLLOWLOCATION => false];
28+
$this->options->curl_options = [
29+
CURLOPT_FOLLOWLOCATION => false,
30+
CURLOPT_MAXREDIRS => 25,
31+
];
2932

3033
$this->http = new URLExtractor($this->options);
3134
}

0 commit comments

Comments
 (0)