senchalabs/connect — Issue #472: need non-global way to do `delete connect.bodyParser.parse['foo']`
Author: coolaj86
Created: 2012-02-10 16:45:45+00:00
State: open

In a vhost situation changing the global connect causes unexpected behavior:

delete connect.bodyParser.parse['foo']

I would expect the way to do this to be something like:

var bodyParser = connect.bodyParser()
;

delete bodyParser.parse['foo'];

Or to be able to pass in options that override the defaults

connect.bodyParser({ parser: {'foo': null} })