From 7884c84c27c6dab0818ec1e1405f550db75227ef Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Fri, 29 Jan 2016 14:27:20 +0300 Subject: [PATCH] FIX redirect code 307 to 302 --- app.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.php b/app.php index 0ad1a61..e3fa56c 100644 --- a/app.php +++ b/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;