Explorar o código

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

Henrik Westphal %!s(int64=14) %!d(string=hai) anos
pai
achega
5219f81f35
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
     }
 
     /**