1
0

Service workers fixed (I think)

This commit is contained in:
Zef Hemel
2022-04-25 19:46:08 +02:00
parent d52d81a909
commit cb2d3f8652
16 changed files with 350 additions and 93 deletions
@@ -119,7 +119,11 @@ export class HttpSpacePrimitives implements SpacePrimitives {
if (req.headers.get("Content-length") === "0") {
return;
}
return await req.json();
if (req.headers.get("Content-type") === "application/json") {
return await req.json();
} else {
return await req.text();
}
}
async getPageMeta(name: string): Promise<PageMeta> {