Skip to content
Myr

Removed Express.Halt

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

authored by visionmedia · committed by visionmedia · parent 93c55b3 · Browse files · 1 file+0 added−9 removed
This commit

State

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

Diff stats

1 file+0 added−9 removed

  • other:+0 added−9 removed

1 file+0 added−9 removed

modified:lib/express.core.js-9 removed
47 unmodified lines
48 504: 'Gateway Time-out',49 505: 'HTTP Version not supported'50 },51 52 // --- Halt53 54 Halt: function(){55 this.toString = function() {56 return 'Express.Halt'57 }58 },59 52 // --- Response53 54 response : {55 headers : {},
214 unmodified lines
270 */271272 fail : function(e) {273 this.hook('onFailure', e)282 if (e.constructor == Express.Halt) return274 this.header('Content-Type', 'text/plain')275 this.response.body = e.message ? e.name + ': ' + e.message : e.toString()276 this.response.status = 500277 },
408 unmodified lines