I m using following code for creating server with node js but whenever i run local host on this port in browser it always show index.html file. What is wrong i do ..
var http = require('http');
var fs = require('fs');
var index = fs.readFileSync('index.html');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'html'});
res.end(index);
}).listen(9615);