Fix tests

This commit is contained in:
Timothy Warren 2018-10-09 18:26:42 -04:00
parent 587d5fa14e
commit c9ec11c2df
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

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