Remove conditional status setting.

This commit is contained in:
Mark Scherer 2015-01-26 23:47:20 +01:00
parent 70276b7a7a
commit 4fa5dd62c5

View file

@ -788,9 +788,7 @@ class Controller extends Object implements CakeEventListener {
if ($status === null) {
$status = 302;
}
if ($status) {
$this->response->statusCode($status);
}
$this->response->statusCode($status);
if ($exit) {
$this->response->send();