mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Polyfill unreliable REQUEST_SCHEME behavior
This commit is contained in:
parent
e70f392b1c
commit
7be8b25a21
1 changed files with 4 additions and 1 deletions
|
@ -127,6 +127,9 @@ return (function() {
|
|||
|
||||
setlocale(LC_TIME, "POSIX");
|
||||
|
||||
if(empty($_SERVER["REQUEST_SCHEME"]))
|
||||
$_SERVER["REQUEST_SCHEME"] = empty($_SERVER["HTTPS"]) ? "HTTP" : "HTTPS";
|
||||
|
||||
$showCommitHash = true; # plz remove when release
|
||||
if(is_dir($gitDir = OPENVK_ROOT . "/.git") && $showCommitHash)
|
||||
$ver = trim(`git --git-dir="$gitDir" log --pretty="%h" -n1 HEAD` ?? "Unknown version") . "-nightly";
|
||||
|
|
Loading…
Reference in a new issue