Skip to content

Commit

Permalink
fix: SCF Region
Browse files Browse the repository at this point in the history
  • Loading branch information
qkqpttgf committed Mar 22, 2021
1 parent d377410 commit 58482e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/TencentSCF_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ 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'];
$_SERVER['Region'] = getenv('TENCENTCLOUD_REGION');
$_SERVER['Region'] = $context['tencentcloud_region'];
$host_name = $event['headers']['host'];
$_SERVER['HTTP_HOST'] = $host_name;
$serviceId = $event['requestContext']['serviceId'];
Expand Down

0 comments on commit 58482e8

Please sign in to comment.