FIX redirect code 307 to 302
This commit is contained in:
parent
64cabceea4
commit
7884c84c27
4
app.php
4
app.php
|
|
@ -143,9 +143,9 @@ class App
|
|||
/**
|
||||
* Перенаправление на другой URL
|
||||
* @param type $url
|
||||
* @param type $httpCode - по умолчанию 307, временный редирект
|
||||
* @param type $httpCode - по умолчанию 302, временный редирект
|
||||
*/
|
||||
public static function redirect($url, $httpCode = 307)
|
||||
public static function redirect($url, $httpCode = 302)
|
||||
{
|
||||
header('Location: ' . $url, true, $httpCode);
|
||||
die;
|
||||
|
|
|
|||
Loading…
Reference in New Issue