From f707f6084e186488e0d4f06574b6a59fb5824860 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sat, 13 Feb 2016 18:14:26 -0500 Subject: [PATCH] Fixed URL assembly --- src/Redirect.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Redirect.php b/src/Redirect.php index 99f44c6..58ec083 100644 --- a/src/Redirect.php +++ b/src/Redirect.php @@ -28,12 +28,12 @@ class Redirect || $_SERVER['HTTPS'] == 'off' || $_SERVER['HTTPS'] == '' ) { - $destination = 'http'; + $protocol = 'http'; } else { - $destination = 'https'; + $protocol = 'https'; } - $destination .= '://' . $_SERVER['HTTP_HOST'] . $destination; + $destination = $protocol . '://' . $_SERVER['HTTP_HOST'] . $destination; } if ($permanent) {