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}"; }