8000 Reset redirectCount when throwing exception · symfony/symfony@83fd578 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83fd578

Browse files
authored
Reset redirectCount when throwing exception
1 parent 3c2b1ff commit 83fd578

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/BrowserKit/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ public function followRedirect()
448448

449449
if (-1 !== $this->maxRedirects) {
450450
if ($this->redirectCount > $this->maxRedirects) {
451+
$this->redirectCount = 0;
451452
throw new \LogicException(sprintf('The maximum number (%d) of redirections was reached.', $this->maxRedirects));
452453
}
453454
}

0 commit comments

Comments
 (0)
0