Browse Source

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

Henrik Westphal 14 years ago
parent
commit
5219f81f35
1 changed files with 1 additions and 1 deletions
  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);
     }
 
     /**