visionmedia/express — Issue #975: It looks like 'connect' methodOverride sets req.method='del' and express app routing uses 'delete'
Author: celer
Created: 2012-01-23 04:58:33+00:00
State: open

It seems like there is a mis-match between what connect's methodOverride sets req.method to and what expressjs expects.

This seems to resolve the issue:

app.use(function(req,res,next){
if(req.method=="DEL")
req.method="DELETE";
next();
});

NPM reports:

express@2.5.6
connect@1.8.5