From 4d6cecd11c4a3b14731c0e696a163471be231c31 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:56:39 +0800 Subject: [PATCH] Update TencentSCF_env.php --- platform/TencentSCF_env.php | 1 + 1 file changed, 1 insertion(+) 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; }