From 5274405e7a59a3943c62fcd3c24b5631e81fda05 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:57:30 +0800 Subject: [PATCH] get method --- platform/TencentSCF_file.php | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/TencentSCF_file.php b/platform/TencentSCF_file.php index 479ea5d..606481f 100644 --- a/platform/TencentSCF_file.php +++ b/platform/TencentSCF_file.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; }