Prechádzať zdrojové kódy

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

Henrik Westphal 14 rokov pred
rodič
commit
5219f81f35

+ 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);
     }
 
     /**