summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2012-07-13 11:55:51 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2012-07-13 11:55:51 +0200
commit13553948b9f2401aacaee5af09a555963412afde (patch)
tree326660beab0ef0ba47aba5945a132d402a97a0e5 /Http
parent2030be9c7e0ab61e0c87cad08c7ae0524af8f4d5 (diff)
downloadsymfony-security-13553948b9f2401aacaee5af09a555963412afde.zip
symfony-security-13553948b9f2401aacaee5af09a555963412afde.tar.gz
symfony-security-13553948b9f2401aacaee5af09a555963412afde.tar.bz2
ensured that an exception is always converted to an error response (and that we keep the HTTP status code and headers)
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/ExceptionListener.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php
index 7094c54..f134f9c 100644
--- a/Http/Firewall/ExceptionListener.php
+++ b/Http/Firewall/ExceptionListener.php
@@ -129,7 +129,6 @@ class ExceptionListener
$subRequest->attributes->set(SecurityContextInterface::ACCESS_DENIED_ERROR, $exception);
$response = $event->getKernel()->handle($subRequest, HttpKernelInterface::SUB_REQUEST, true);
- $response->setStatusCode(403);
} else {
return;
}