mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +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
|
public static function getCurrent() : string
|
||||||
{
|
{
|
||||||
/** @noinspection PhpUndefinedConstantInspection */
|
/** @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