Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 83fd578

Browse filesBrowse files
authored
Reset redirectCount when throwing exception
1 parent 3c2b1ff commit 83fd578
Copy full SHA for 83fd578

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎src/Symfony/Component/BrowserKit/Client.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/BrowserKit/Client.php
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.