Просмотр исходного кода

Using the $status parameter instead of fixed value when creating a RedirectResponse.

Henrik Westphal 14 лет назад
Родитель
Сommit
5219f81f35
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Symfony/Component/Security/Http/HttpUtils.php

+ 1 - 1
src/Symfony/Component/Security/Http/HttpUtils.php

@@ -54,7 +54,7 @@ class HttpUtils
             $path = $this->generateUrl($path, true);
         }
 
-        return new RedirectResponse($path, 302);
+        return new RedirectResponse($path, $status);
     }
 
     /**