Skip to content

Commit 9201e71

Browse files
authored
fix: set text/html content-type when ssr is false (#2059)
1 parent 10bf932 commit 9201e71

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/fifty-flies-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/start": minor
3+
---
4+
5+
fix text/html missing when ssr is false

packages/start/src/server/handler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export function createBaseHandler(
7979
return redirect(context.response.headers.get("Location")!, status);
8080
}
8181

82+
event.response.headers.set("content-type", "text/html");
83+
8284
return html;
8385
}
8486

0 commit comments

Comments
 (0)