Skip to content

Commit

Permalink
set content type on page event
Browse files Browse the repository at this point in the history
  • Loading branch information
edivados committed Nov 7, 2023
1 parent 5dd1bdb commit e4c4366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/start-new/server/handler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export async function createPageEvent(ctx: FetchEvent) {
const serverManifest = import.meta.env.MANIFEST["ssr"];
const prevPath = ctx.request.headers.get("x-solid-referrer");
const mutation = ctx.request.headers.get("x-solid-mutation") === "true";
ctx.setResponseHeader("Content-Type", "text/html");
const pageEvent: PageEvent = Object.assign(ctx, {
manifest: await clientManifest.json(),
assets: [
Expand Down

0 comments on commit e4c4366

Please sign in to comment.