From 4f18d3b86877ec09c7c6c50779fc39a8692e9855 Mon Sep 17 00:00:00 2001 From: dontcallmedom Date: Wed, 19 Oct 2011 14:52:41 +0200 Subject: [PATCH] Not sure why "del" and "all" are treated separately here? It makes express fail on app.all() requests. --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 4646ee1..884ce39 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ - /*! * Express - Contrib - namespace * Copyright(c) 2010 TJ Holowaychuk @@ -46,7 +45,7 @@ exports.__defineGetter__('currentNamespace', function(){ * Proxy HTTP methods to provide namespacing support. */ -express.router.methods.concat(['del', 'all']).forEach(function(method){ +express.router.methods.forEach(function(method){ var orig = HTTPServer.prototype[method]; exports[method] = function(){ var args = Array.prototype.slice.call(arguments)