pinata 1.7.0 → 1.7.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.js CHANGED
@@ -715,7 +715,7 @@ var getCid = async (config, cid, options) => {
715
715
  errorData
716
716
  );
717
717
  }
718
- const contentType = request.headers.get("content-type");
718
+ const contentType = request.headers.get("content-type")?.split(";")[0] || null;
719
719
  if (contentType?.includes("application/json")) {
720
720
  data = await request.json();
721
721
  } else if (contentType?.includes("text/")) {