@hyper-fetch/core 7.5.1 → 7.5.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.
@@ -2457,8 +2457,9 @@ var stringifyValue = (response) => {
2457
2457
  };
2458
2458
  var getAdapterHeaders = (request) => {
2459
2459
  const isFormData = hasWindow() && request.payload instanceof FormData;
2460
+ const isObject = typeof request.payload === "object" && request.payload !== null;
2460
2461
  const headers = {};
2461
- if (!isFormData) headers["Content-Type"] = "application/json";
2462
+ if (!isFormData && isObject) headers["Content-Type"] = "application/json";
2462
2463
  Object.assign(headers, request.headers);
2463
2464
  return headers;
2464
2465
  };