Skip to content

Commit

Permalink
Set 302 as default argument for redirects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Jan 25, 2015
1 parent 63e5b9e commit 3cddfdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Controller.php
Expand Up @@ -501,7 +501,7 @@ public function shutdownProcess()
* @return void|\Cake\Network\Response
* @link http://book.cakephp.org/3.0/en/controllers.html#Controller::redirect
*/
public function redirect($url, $status = null)
public function redirect($url, $status = 302)
{
$this->autoRender = false;

Expand Down

0 comments on commit 3cddfdc

Please sign in to comment.