Well, that might be a dumb question, but I'm as n00b as I can be, regarding node.
I set up a server, with code that we can find in any node view or tutorial ...
var http = require('http');
var server = http.createServer(function(req, res){
console.log('connection from: ' res.socket.remoteAddress);
res.writeHead(200, ['Content-Type', 'text/plain']);
res.write('Hello ');
res.end('World');
});
server.listen('8080');
My question is: why does my server log my message twice for every request I make from the browser?
source
share