From 1a8f1cb9621800fccd0dce15fa2df6b1da685513 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:53:33 +0800 Subject: [PATCH] get method --- platform/BaiduCFC.php | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/BaiduCFC.php b/platform/BaiduCFC.php index 77ad2f0..d7e30b0 100644 --- a/platform/BaiduCFC.php +++ b/platform/BaiduCFC.php @@ -51,6 +51,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['BCE_CFC_RUNTIME_NAME'] = 'php7'; return $path; }