Browse Source

Add text encoding header for testserver data files

pull/651/head
Sami Vaarala 9 years ago
parent
commit
1c838d7c90
  1. 2
      testrunner/server-node/webuiutil.js

2
testrunner/server-node/webuiutil.js

@ -90,7 +90,7 @@ function makeDataFileHandler(state) {
var fn = path.join(assert(state.dataDumpDirectory), sha);
var data = fs.readFileSync(fn);
res.setHeader('content-type', 'text/plain');
res.setHeader('content-type', 'text/plain; charset=utf-8');
res.send(data);
}).catch(function (err) {
res.status(500);

Loading…
Cancel
Save