Permalink
Browse files

Fix: res.sendHead is wrong

  • Loading branch information...
1 parent 2bca4b4 commit c91072e9d7ff04563504489771b965f976709afa @felixge committed Mar 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 guide/beginner.pdc
View
@@ -103,7 +103,7 @@ the file 'hello_http.js' and put the following code into it:
var http = require('http');
var server = http.createServer(function(req, res) {
-  res.sendHead(200);
+  res.writeHead(200);
  res.end('Hello Http');
});
server.listen(8080);

0 comments on commit c91072e

Please sign in to comment.