修复报错

This commit is contained in:
net909
2025-07-10 16:41:11 +08:00
parent 654151ce5b
commit 987deda95d

View File

@@ -452,7 +452,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') {
// 表单文件
unset($options['headers']['X-Content-Type'])
unset($options['headers']['X-Content-Type']);
$options['multipart'] = $data;
} else {
if (!isset($options['headers']['Content-Type'])) {