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:
Sam Minnee 2008-11-09 22:40:08 +00:00
parent 4f6170c265
commit b4977f8500

View File

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