diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-12-26 19:45:42 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-12-26 19:48:48 -0500 |
commit | 5c9237f5fb12f85aa7c84bcf179d4e9248c8fa95 (patch) | |
tree | f670dd689385c8fc4fe2f19ea9898e158b1f7c99 /bootstrap | |
parent | 0c9334bacf14748f62a416390307a483a520abe9 (diff) | |
download | thedroneely.com-5c9237f5fb12f85aa7c84bcf179d4e9248c8fa95.tar.gz thedroneely.com-5c9237f5fb12f85aa7c84bcf179d4e9248c8fa95.tar.bz2 thedroneely.com-5c9237f5fb12f85aa7c84bcf179d4e9248c8fa95.zip |
bootstrap/Functions: Use request scheme on simple api fetch
Duplicate calls of this will be slow
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/Functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php index a515402..0ec1dac 100644 --- a/bootstrap/Functions.php +++ b/bootstrap/Functions.php @@ -24,7 +24,7 @@ function fetch(string $path, string $field) { $config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php';; $json = file_get_contents( - 'http://' . $_SERVER['SERVER_NAME'] + $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['SERVER_NAME'] . $path . '?token=' . $config['cms']['token'] ); $data = json_decode($json, true); |