mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-20 13:28:42 +00:00
Fix current uri scheme
This commit is contained in:
parent
1e79d9616a
commit
156c5849c7
|
|
@ -187,7 +187,7 @@ final class Http implements UriInterface
|
|||
public static function getCurrent() : string
|
||||
{
|
||||
/** @noinspection PhpUndefinedConstantInspection */
|
||||
return 'http://' . ($_SERVER['HTTP_HOST'] ?? '') . ($_SERVER['REQUEST_URI'] ?? '');
|
||||
return (\stripos($_SERVER['SERVER_PROTOCOL'], 'https') !== false ? 'https' : 'http' ) . '://' . ($_SERVER['HTTP_HOST'] ?? '') . ($_SERVER['REQUEST_URI'] ?? '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user