From 5258b215d4608a320f4afd1c13f6d8bd8e80c7bd Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 9 Oct 2018 18:26:42 -0400 Subject: [PATCH] Fix tests --- src/Command/BaseCommand.php | 1 + src/UrlGenerator.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Command/BaseCommand.php b/src/Command/BaseCommand.php index dd73be07..842993ab 100644 --- a/src/Command/BaseCommand.php +++ b/src/Command/BaseCommand.php @@ -17,6 +17,7 @@ namespace Aviat\AnimeClient\Command; use function Aviat\AnimeClient\loadToml; +use function Aviat\AnimeClient\loadTomlFile; use Aura\Session\SessionFactory; use Aviat\AnimeClient\Util; diff --git a/src/UrlGenerator.php b/src/UrlGenerator.php index 810e44b5..5dcf59f1 100644 --- a/src/UrlGenerator.php +++ b/src/UrlGenerator.php @@ -88,7 +88,7 @@ class UrlGenerator extends RoutingBase { } $path = implode('/', $path_segments); - $scheme = ($_SERVER['HTTPS'] === 'on') ? 'https:' : ''; + $scheme = (isset($_SERVER['HTTPS'])) ? 'https:' : ''; return "{$scheme}//{$this->host}/{$path}"; }