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.mjs CHANGED
@@ -689,7 +689,7 @@ var getCid = async (config, cid, options) => {
689
689
  errorData
690
690
  );
691
691
  }
692
- const contentType = request.headers.get("content-type");
692
+ const contentType = request.headers.get("content-type")?.split(";")[0] || null;
693
693
  if (contentType?.includes("application/json")) {
694
694
  data = await request.json();
695
695
  } else if (contentType?.includes("text/")) {