From c31e0eaf412fd4e783f8993c0172664df0f4d2a1 Mon Sep 17 00:00:00 2001 From: net909 Date: Fri, 11 Jul 2025 09:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E7=BD=B2=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common.php b/app/common.php index b2f43b4..a1c5e59 100644 --- a/app/common.php +++ b/app/common.php @@ -450,7 +450,7 @@ function http_request($url, $data = null, $referer = null, $cookie = null, $head } } } else if (is_array($data) || is_object($data)) { - if ($options['headers']['X-Content-Type'] == 'multipart/form-data') { + if (isset($options['headers']['X-Content-Type']) && $options['headers']['X-Content-Type'] == 'multipart/form-data') { // 表单文件 unset($options['headers']['X-Content-Type']); $options['multipart'] = $data;