Skip to content

Instantly share code, notes, and snippets.

@gkatsev
Created September 11, 2013 19:08
Show Gist options
  • Save gkatsev/6528315 to your computer and use it in GitHub Desktop.
Save gkatsev/6528315 to your computer and use it in GitHub Desktop.
log shows only `foo`.
var http = require('http');
var server = http.createServer(function(req, res) {
console.log('foo');
res.end('foo');
}, function(req, res) {
console.log('bar');
res.end('bar');
});
server.listen(5555);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment