修复部署失败

This commit is contained in:
net909
2025-07-11 09:56:08 +08:00
parent 987deda95d
commit c31e0eaf41

View File

@@ -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;