Skip to content
Snippets Groups Projects
Commit 534071f4 authored by v1r0x's avatar v1r0x
Browse files

set correct http status code

Was intended to respond with a 303 (See other) status code instead of 307 (Temporary Redirect).
parent 73d46afc
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ class RedirectResponse extends Response { ...@@ -44,7 +44,7 @@ class RedirectResponse extends Response {
*/ */
public function __construct($redirectURL) { public function __construct($redirectURL) {
$this->redirectURL = $redirectURL; $this->redirectURL = $redirectURL;
$this->setStatus(Http::STATUS_TEMPORARY_REDIRECT); $this->setStatus(Http::STATUS_SEE_OTHER);
$this->addHeader('Location', $redirectURL); $this->addHeader('Location', $redirectURL);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment