mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Set grav_cli as referer when coming from CLI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user