Generated URLs default to use the current protocol (http or https)

Signed-off-by: Phill Sparks <phill@bulbstudios.com>
This commit is contained in:
Phill Sparks
2012-05-30 13:14:16 +01:00
parent d21713f35f
commit 6151886860
6 changed files with 16 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ class Redirect extends Response {
* @param bool $secure
* @return Redirect
*/
public static function home($status = 302, $https = false)
public static function home($status = 302, $https = null)
{
return static::to(URL::home($https), $status);
}
@@ -41,7 +41,7 @@ class Redirect extends Response {
* @param bool $https
* @return Redirect
*/
public static function to($url, $status = 302, $https = false)
public static function to($url, $status = 302, $https = null)
{
return static::make('', $status)->header('Location', URL::to($url, $https));
}