set correct http status code

Was intended to respond with a 303 (See other) status code instead of 307 (Temporary Redirect).
This commit is contained in:
v1r0x 2016-02-18 11:56:09 +01:00
parent 73d46afc3c
commit 534071f4b2
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class RedirectResponse extends Response {
*/
public function __construct($redirectURL) {
$this->redirectURL = $redirectURL;
$this->setStatus(Http::STATUS_TEMPORARY_REDIRECT);
$this->setStatus(Http::STATUS_SEE_OTHER);
$this->addHeader('Location', $redirectURL);
}