Code Context switch ($origin) {
case 'Admin':
return substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$origin = 'Admin'
$headers = [
'Host' => 'app.rivasciudad.es',
'accept' => '*/*',
'user-agent' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'referer' => 'https://app.rivasciudad.es/',
'cookie' => 'Rivas=6mt6aa4kjvfvd1s4t0ck854937',
'X-Forwarded-Proto' => 'https',
'X-Forwarded-For' => '52.15.123.168',
'X-Forwarded-Host' => 'app.rivasciudad.es',
'X-Forwarded-Server' => 'app.rivasciudad.es',
'Connection' => 'Keep-Alive'
]
App\Log\Engine\DatabaseLog::getLocale() - APP/Log/Engine/DatabaseLog.php, line 207
App\Log\Engine\DatabaseLog::log() - APP/Log/Engine/DatabaseLog.php, line 92
Cake\Log\Log::write() - CORE/src/Log/Log.php, line 393
Cake\Log\Log::warning() - CORE/src/Log/Log.php, line 478
include - ROOT/vendor/cakephp/debug_kit/config/bootstrap.php, line 31
Cake\Core\Plugin::_includeFile() - CORE/src/Core/Plugin.php, line 399
Cake\Core\Plugin::bootstrap() - CORE/src/Core/Plugin.php, line 321
Cake\Core\Plugin::load() - CORE/src/Core/Plugin.php, line 175
require - ROOT/config/bootstrap.php, line 273
[main] - ROOT/webroot/index.php, line 28