Skip to content
Myr

Added support for plugins to halt. Closes #189

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

authored by visionmedia · committed by visionmedia · parent 821defc · Browse files · 2 files+3 added−0 removed
This commit

State

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

Diff stats

2 files+3 added−0 removed

  • tests:+2 added−0 removed
  • other:+1 added−0 removed

2 files+3 added−0 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+2 added