Skip to content

Commit

Permalink
fix(vite-plugin-nitro): add Content-Type header for responses (#712)…
Browse files Browse the repository at this point in the history
…. (#717)
  • Loading branch information
alaendle committed Oct 24, 2023
1 parent 0191590 commit 3621b0b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export function devServerPlugin(options: ServerOptions): Plugin {
await viteServer.ssrLoadModule('~analog/entry-server')
)['default'];
const result = await entryServer(req.originalUrl, template);
res.setHeader('Content-Type', 'text/html');
res.end(result);
} catch (e) {
viteServer && viteServer.ssrFixStacktrace(e as Error);
Expand Down

0 comments on commit 3621b0b

Please sign in to comment.