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