BUGFIX Using setStatusCode() in HTTPResponse->redirect() in order to update status description accordingly (fixes #6495, thanks florian.thoma)

This commit is contained in:
Ingo Schommer 2011-03-16 22:18:57 +13:00
parent 2b7c633e6e
commit 09db4ba695

View File

@ -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;
}