@whitesev/utils 2.4.0 → 2.4.1

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.umd.js CHANGED
@@ -1944,8 +1944,8 @@
1944
1944
  });
1945
1945
  if (ContentTypeIndex !== -1) {
1946
1946
  let ContentTypeKey = headersKeyList[ContentTypeIndex];
1947
+ let ContentType = requestOption.headers[ContentTypeKey];
1947
1948
  // 设置了Content-Type
1948
- let ContentType = requestOption.headers[ContentTypeIndex].toLowerCase();
1949
1949
  if (ContentType.includes("application/json")) {
1950
1950
  // application/json
1951
1951
  if (requestOption.data instanceof FormData) {