From 011471289b06f73d33dfd1ac4eb9253cc2ff49a9 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:52:24 +0800 Subject: [PATCH] get method --- platform/AliyunFC.php | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/AliyunFC.php b/platform/AliyunFC.php index 7b944ee..191396d 100644 --- a/platform/AliyunFC.php +++ b/platform/AliyunFC.php @@ -67,6 +67,7 @@ function GetPathSetting($event, $context) $_SERVER['host'] = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST']; $_SERVER['referhost'] = explode('/', $event['headers']['Referer'][0])[2]; $_SERVER['HTTP_IF_MODIFIED_SINCE'] = $event['headers']['If-Modified-Since'][0]; + $_SERVER['REQUEST_METHOD'] = $event['method']; $_SERVER['FC_SERVER_PATH'] = '/var/fc/runtime/php7.2'; return $path; //return spurlencode($path, '/');