mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Using setStatusCode() in HTTPResponse->redirect() in order to update status description accordingly (fixes #6495, thanks florian.thoma)
This commit is contained in:
parent
2b7c633e6e
commit
09db4ba695
@ -199,7 +199,7 @@ class SS_HTTPResponse {
|
||||
|
||||
function redirect($dest, $code=302) {
|
||||
if(!in_array($code, self::$redirect_codes)) $code = 302;
|
||||
$this->statusCode = $code;
|
||||
$this->setStatusCode($code);
|
||||
$this->headers['Location'] = $dest;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user