| Q |
A |
| Bug report? |
yes |
| Feature request? |
no |
| BC Break report? |
no |
| RFC? |
yes |
| Symfony version |
2.8.22 |
When catching the exception below and you still want to reuse the client every new redirect fails as the counter has not reset.
if (-1 !== $this->maxRedirects) {
if ($this->redirectCount > $this->maxRedirects) {
throw new \LogicException(sprintf('The maximum number (%d) of redirections was reached.', $this->maxRedirects));
}
}