@whitesev/utils 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1941,8 +1941,8 @@ var Utils = (function () {
1941
1941
  });
1942
1942
  if (ContentTypeIndex !== -1) {
1943
1943
  let ContentTypeKey = headersKeyList[ContentTypeIndex];
1944
+ let ContentType = requestOption.headers[ContentTypeKey];
1944
1945
  // 设置了Content-Type
1945
- let ContentType = requestOption.headers[ContentTypeIndex].toLowerCase();
1946
1946
  if (ContentType.includes("application/json")) {
1947
1947
  // application/json
1948
1948
  if (requestOption.data instanceof FormData) {
@@ -4067,7 +4067,7 @@ var Utils = (function () {
4067
4067
  this.windowApi = new WindowApi(option);
4068
4068
  }
4069
4069
  /** 版本号 */
4070
- version = "2024.10.28";
4070
+ version = "2024.10.29";
4071
4071
  addStyle(cssText) {
4072
4072
  if (typeof cssText !== "string") {
4073
4073
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");