From 91c6583d70a06cac27c70daa102fe07a62b012ec Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 16 Aug 2020 20:15:52 +0800 Subject: [PATCH] fix: uploadfile --- platform/BaiduCFC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/BaiduCFC.php b/platform/BaiduCFC.php index 577b524..d872d5a 100644 --- a/platform/BaiduCFC.php +++ b/platform/BaiduCFC.php @@ -41,7 +41,7 @@ function GetPathSetting($event, $context) $_SERVER['is_guestup_path'] = is_guestup_path($path); $_SERVER['PHP_SELF'] = path_format($_SERVER['base_path'] . $path); $_SERVER['REMOTE_ADDR'] = $event['requestContext']['sourceIp']; - $_SERVER['HTTP_X_REQUESTED_WITH'] = $event['headers']['x-requested-with']; + $_SERVER['HTTP_X_REQUESTED_WITH'] = $event['headers']['X-Requested-With']; return $path; }