Skip to content

Commit 0d4834f

Browse files
authored
Fix HTTPS detection in Router.php
1 parent d997b77 commit 0d4834f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public static function getBaseUrl()
386386
if (substr($url, 0, 2) != '//') {
387387
$url = '//' . $host . $url;
388388
}
389-
$s = (($_SERVER['HTTPS'] ?? 'off') != 'off') ? 's' : '';
389+
$s = ($_SERVER['HTTPS'] ?? '') ? 's' : '';
390390
$url = "http$s:$url";
391391
}
392392
return rtrim($url, '/') . '/';

0 commit comments

Comments
 (0)