Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…patibility.
  • Loading branch information...
commit e3e97523df4e5ac9ccc9da19f6cc1a48938b4fa8 1 parent 0f0296f
@ry ry authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.