1. Josh VanderLinden
  2. node-iostat

Commits

Josh VanderLinden  committed 1a5ec6d

Making the page display again.. oops

  • Participants
  • Parent commits 3a22cd7
  • Branches master

Comments (0)

Files changed (1)

File iostat.js

View file
  • Ignore whitespace
 });
 
 app.get('/', function(req, res) {
-  getFile('iostat.html', res);
+  fs.readFile('./iostat.html', function (err, data){
+    if (err) throw err;
+
+    res.writeHead(200);
+    res.end(data);
+  });
 });
 
 app.use('/static', express.static(__dirname));