Permalink
Browse files

Change 'new node.http.Server' to 'node.http.createServer' for 0.1 com…

…patibility.
  • Loading branch information...
1 parent 0f0296f commit e3e97523df4e5ac9ccc9da19f6cc1a48938b4fa8 @ry ry committed Jul 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 fu.js
View
2 fu.js
@@ -17,7 +17,7 @@ fu.get = function (path, handler) {
getMap[path] = handler;
};
-var server = new node.http.Server(function (req, res) {
+var server = node.http.createServer(function (req, res) {
if (req.method === "GET" || req.method === "HEAD") {
var handler = getMap[req.uri.path] || notFound;

0 comments on commit e3e9752

Please sign in to comment.