mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Set Content-Type on main page. ServerDensity needs this for some reason.
This commit is contained in:
@@ -59,6 +59,7 @@ var run = function (bundle_dir) {
|
||||
var app_html = fs.readFileSync(path.join(bundle_dir, 'app.html'));
|
||||
var unsupported_html = fs.readFileSync(path.join(bundle_dir, 'unsupported.html'));
|
||||
app.use(function (req, res) {
|
||||
res.writeHead(200, {'Content-Type': 'text/html'});
|
||||
if (supported_browser(req.headers['user-agent']))
|
||||
res.write(app_html);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user