Set grav_cli as referer when coming from CLI

This commit is contained in:
Djamil Legato
2020-10-29 15:56:20 -07:00
parent 5bf1ec0fd9
commit ce327dca42

View File

@@ -57,7 +57,7 @@ class Response
}
$config = Grav::instance()['config'];
$referer = Grav::instance()['uri']->rootUrl(true);
$referer = \defined('GRAV_CLI') ? 'grav_cli' : Grav::instance()['uri']->rootUrl(true);
$options = new HttpOptions();
// Set default Headers