Skip to content
Myr

Merge branch 'plugin-halt'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parents 4d1bda0, 4907701 · Browse files · 3 files+21 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+21 added−8 removed

  • tests:+13 added−1 removed
  • other:+8 added−7 removed

3 files+21 added−8 removed

modified:lib/express/plugins/hooks.js+7 added-7 removed
modified:lib/express/core.js+1 added
267 unmodified lines
268 269 route: function(request, response){270 request = new Request(request, response)271 request.trigger('request')272 if (request.response.finished) return273 try {274 if (typeof (body = (new Router(request)).route()) == 'string')275 request.halt(200, body)276 }
46 unmodified lines
modified:spec/spec.plugins.hooks.js+13 added-1 removed