Commit 9482d24a authored by Reza Haidari .A's avatar Reza Haidari .A Committed by GitHub

set header Content-Type "text/html"

parent 2d92aa7b
...@@ -56,6 +56,7 @@ app.get('*', (req, res) => { ...@@ -56,6 +56,7 @@ app.get('*', (req, res) => {
return res.end('waiting for compilation... refresh in a moment.') return res.end('waiting for compilation... refresh in a moment.')
} }
res.setHeader("Content-Type", "text/html");
var s = Date.now() var s = Date.now()
const context = { url: req.url } const context = { url: req.url }
const renderStream = renderer.renderToStream(context) const renderStream = renderer.renderToStream(context)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment