Suppress encoding warning in Firefox
Thomas Aylott committed
Nov 8, 2013 at 16:30 UTC
66a0f2e7bde5b8e38457aab0513b609473be9c83
1 file changed
+1
grunt/config/server.js
+1
@@ -16,6 +16,7 @@ module.exports = function(grunt){
16
function testResultLoggerMiddleware(req, res, next) {
17
if (!(req.body && req.body.data)) return next();
18
grunt.log.writeln('[%s][%s]', req.headers['user-agent'], Date.now(), req.body.data);
19
+ res.write('<!doctype html><meta charset=utf-8>');
20
res.end('Got it, thanks!');
21
}
22