Open Stefany93 opened 5 years ago
SOLUTION:
options: {
port: 8800,
hostname: 'localhost',
middleware: function(connect, options, middlewares) {
middlewares.unshift(function(req, res, next) {
res.setHeader('Content-Type', 'text/html');
return next();
});
return middlewares;
},
}
I need to serve files without extensions as text/html