Remove duplicate validation in RedirectResponse

This commit is contained in:
Tobias Schultze 2016-02-18 01:47:59 +01:00
parent d3114d1778
commit d27c4f4d68
1 changed files with 0 additions and 4 deletions

View File

@ -33,10 +33,6 @@ class RedirectResponse extends Response
*/
public function __construct($url, $status = 302, $headers = array())
{
if (empty($url)) {
throw new \InvalidArgumentException('Cannot redirect to an empty URL.');
}
parent::__construct('', $status, $headers);
$this->setTargetUrl($url);