diff --git a/platform/TencentSCF_env.php b/platform/TencentSCF_env.php index 492a081..ff5fd4f 100644 --- a/platform/TencentSCF_env.php +++ b/platform/TencentSCF_env.php @@ -59,6 +59,7 @@ function GetPathSetting($event, $context) $_SERVER['referhost'] = explode('/', $event['headers']['referer'])[2]; $_SERVER['HTTP_TRANSLATE'] = $event['headers']['translate'];//'f' $_SERVER['HTTP_IF_MODIFIED_SINCE'] = $event['headers']['if-modified-since']; + $_SERVER['REQUEST_METHOD'] = $event['httpMethod']; $_SERVER['USER'] = 'qcloud'; return $path; }