diff --git a/lib/router/bind.js b/lib/router/bind.js index d387914a7..4d3a23c29 100644 --- a/lib/router/bind.js +++ b/lib/router/bind.js @@ -157,8 +157,8 @@ function bindFunction(path, fn, verb, options) { */ var enhancedFn = function routeTargetFnWrapper(req, res, next) { - // Set req.options - req.options = _.merge(req.options || {}, options); + // Set req.options, using `options` to supply default values + req.options = _.merge(options || {}, req.options || {}); // This event can be tapped into to take control of logic // that should be run before each middleware function