diff --git a/src/core/gateway/getCid.ts b/src/core/gateway/getCid.ts index cfab30d..c93438f 100644 --- a/src/core/gateway/getCid.ts +++ b/src/core/gateway/getCid.ts @@ -101,7 +101,8 @@ export const getCid = async ( ); } - const contentType: string | null = request.headers.get("content-type"); + const contentType: string | null = + request.headers.get("content-type")?.split(";")[0] || null; if (contentType?.includes("application/json")) { data = await request.json();