Commit e9a5dfc1 authored by Evan You's avatar Evan You Committed by GitHub

Merge pull request #76 from RezaHaidari/master

set header Content-Type "text/html"
parents 2d92aa7b 9482d24a
...@@ -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