Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created November 16, 2010 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/702701 to your computer and use it in GitHub Desktop.
Save bnoordhuis/702701 to your computer and use it in GitHub Desktop.
Server.listen() doesn't listen (to me)
s = require('http').createServer(function(req, res) {
res.writeHead(200, {'Content-Length':0});
res.end();
});
s.listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment