diff --git a/packages/common/spaces/http_space_primitives.ts b/packages/common/spaces/http_space_primitives.ts index d9f94c6..e567d1c 100644 --- a/packages/common/spaces/http_space_primitives.ts +++ b/packages/common/spaces/http_space_primitives.ts @@ -143,7 +143,7 @@ export class HttpSpacePrimitives implements SpacePrimitives { if (req.headers.get("Content-length") === "0") { return; } - if (req.headers.get("Content-type") === "application/json") { + if (req.headers.get("Content-type")?.includes("application/json")) { return await req.json(); } else { return await req.text();