@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.
package/dist/index.cjs.js CHANGED
@@ -1940,8 +1940,8 @@ class Httpx {
1940
1940
  });
1941
1941
  if (ContentTypeIndex !== -1) {
1942
1942
  let ContentTypeKey = headersKeyList[ContentTypeIndex];
1943
+ let ContentType = requestOption.headers[ContentTypeKey];
1943
1944
  // 设置了Content-Type
1944
- let ContentType = requestOption.headers[ContentTypeIndex].toLowerCase();
1945
1945
  if (ContentType.includes("application/json")) {
1946
1946
  // application/json
1947
1947
  if (requestOption.data instanceof FormData) {
@@ -4066,7 +4066,7 @@ class Utils {
4066
4066
  this.windowApi = new WindowApi(option);
4067
4067
  }
4068
4068
  /** 版本号 */
4069
- version = "2024.10.28";
4069
+ version = "2024.10.29";
4070
4070
  addStyle(cssText) {
4071
4071
  if (typeof cssText !== "string") {
4072
4072
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");