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:
parent
73d46afc3c
commit
534071f4b2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue