Skip to content

Commit

Permalink
BUGFIX Using setStatusCode() in HTTPResponse->redirect() in order to …
Browse files Browse the repository at this point in the history
…update status description accordingly (fixes #6495, thanks florian.thoma)
  • Loading branch information
chillu committed Mar 16, 2011
1 parent 2b7c633 commit 09db4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/control/HTTPResponse.php
Expand Up @@ -199,7 +199,7 @@ function removeHeader($header) {

function redirect($dest, $code=302) {
if(!in_array($code, self::$redirect_codes)) $code = 302;
$this->statusCode = $code;
$this->setStatusCode($code);
$this->headers['Location'] = $dest;
}

Expand Down

0 comments on commit 09db4ba

Please sign in to comment.