mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Suppress encoding warning in Firefox
This commit is contained in:
1 parent
7c8b70eedb
commit
66a0f2e7bd
1 file changed
+1
@@ -16,6 +16,7 @@ module.exports = function(grunt){
|
||||
function testResultLoggerMiddleware(req, res, next) {
|
||||
if (!(req.body && req.body.data)) return next();
|
||||
grunt.log.writeln('[%s][%s]', req.headers['user-agent'], Date.now(), req.body.data);
|
||||
res.write('<!doctype html><meta charset=utf-8>');
|
||||
res.end('Got it, thanks!');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user