diff --git a/platform/scf.php b/platform/scf.php
index 8d71b54..28dd39a 100644
--- a/platform/scf.php
+++ b/platform/scf.php
@@ -28,6 +28,7 @@ function GetGlobalVariable($event)
function GetPathSetting($event, $context)
{
+ $_SERVER['firstacceptlanguage'] = strtolower(splitfirst(splitfirst($event['headers']['accept-language'],';')[0],',')[0]);
$_SERVER['function_name'] = $context['function_name'];
$_SERVER['namespace'] = $context['namespace'];
$host_name = $event['headers']['host'];
@@ -132,7 +133,6 @@ function install()
setConfig($tmp);
if (needUpdate()) {
OnekeyUpate();
- //updateProgram($_SERVER['function_name'], $_SERVER['Region'], $_SERVER['namespace'], $SecretId, $SecretKey);
return message('update to github version, reinstall.', 'Program updating', 201);
}
return output('Jump', 302);