Commits

Magnus Hoff committed d9b4cd1

Bugfix. Send along variable

  • Participants
  • Parent commits b1acef3

Comments (0)

Files changed (1)

File resource-tree.js

 var defaultAllowedMethods = ["GET", "HEAD", "PUT", "POST", "DELETE", "OPTIONS"];
 
 
-function methodNotAllowed(res, resource) {
+function methodNotAllowed(res, resource, allowedMethods) {
     var allow = [];
     for (var member in resource) {
         if (member.substr(0, 5) === 'http_') {
     }
 
     if (typeof functionObject === 'function') functionObject.call(resource, req, res);
-    else methodNotAllowed(res, resource);
+    else methodNotAllowed(res, resource, allowedMethods);
 }
 
 function handleRequest(root, req, res, allowedMethods) {