FIX redirect code 307 to 302

This commit is contained in:
Krivchikov Dmitry 2016-01-29 14:27:20 +03:00
parent 64cabceea4
commit 7884c84c27
1 changed files with 2 additions and 2 deletions

View File

@ -143,9 +143,9 @@ class App
/** /**
* Перенаправление на другой URL * Перенаправление на другой URL
* @param type $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); header('Location: ' . $url, true, $httpCode);
die; die;