Skip to content
Myr

Failing with text/plain [#15]

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

authored by visionmedia · committed by visionmedia · parent 73f475a · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/express.core.js+1 added-1 removed
130 unmodified lines
131 */132133 fail : function(e) {134 if (e.constructor == Express.Break) return135 this.header('Content-Type', 'text/html')135 this.header('Content-Type', 'text/plain')136 this.response.body = e.message ? e.name + ': ' + e.message : e.toString()137 this.response.status = 500138 },139
456 unmodified lines