Skip to content

Commit

Permalink
Using the $status parameter instead of fixed value when creating a Re…
Browse files Browse the repository at this point in the history
…directResponse.
  • Loading branch information
snc committed Jul 24, 2011
1 parent 858cce8 commit 5219f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Security/Http/HttpUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function createRedirectResponse(Request $request, $path, $status = 302)
$path = $this->generateUrl($path, true);
}

return new RedirectResponse($path, 302);
return new RedirectResponse($path, $status);
}

/**
Expand Down

0 comments on commit 5219f81

Please sign in to comment.