mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Added default for HTTP_USER_AGENT
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65471 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4f6170c265
commit
b4977f8500
@ -69,6 +69,7 @@ if(!isset($_SERVER['HTTP_HOST'])) {
|
|||||||
'SERVER_ADDR' => '127.0.0.1',
|
'SERVER_ADDR' => '127.0.0.1',
|
||||||
'REMOTE_ADDR' => '127.0.0.1',
|
'REMOTE_ADDR' => '127.0.0.1',
|
||||||
'REQUEST_METHOD' => 'GET',
|
'REQUEST_METHOD' => 'GET',
|
||||||
|
'HTTP_USER_AGENT' => 'CLI',
|
||||||
);
|
);
|
||||||
|
|
||||||
$_SERVER = array_merge($serverDefaults, $_SERVER);
|
$_SERVER = array_merge($serverDefaults, $_SERVER);
|
||||||
|
Loading…
Reference in New Issue
Block a user