From 38165fa25d89db11aa50de7b062d269d7e58ebaf Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:54:29 +0800 Subject: [PATCH] get method --- platform/HuaweiFG_env.php | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/HuaweiFG_env.php b/platform/HuaweiFG_env.php index a037d3e..1ea9f51 100644 --- a/platform/HuaweiFG_env.php +++ b/platform/HuaweiFG_env.php @@ -74,6 +74,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['_APP_SHARE_DIR'] = '/var/share/CFF/processrouter'; return $path; }