Skip to content

Instantly share code, notes, and snippets.

@a0viedo
Created December 3, 2014 14:41
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 a0viedo/1e3693851b61f935f379 to your computer and use it in GitHub Desktop.
Save a0viedo/1e3693851b61f935f379 to your computer and use it in GitHub Desktop.
This must throw an error, right?
var http = require('http');
var server = http.createServer(function(req, res){
res.write('hi');
res.end();
res.write('hi again');
});
server.listen(8080, function(){
console.log('initialized');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment