Skip to content
Myr

fixed default route returning null body problem

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

authored by csausdev · committed by csausdev · parent a3acc21 · Browse files · 2 files+6 added−3 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+6 added−3 removed

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

2 files+6 added−3 removed

modified:lib/express/core.js+3 added-2 removed
60 unmodified lines
61 settings : {62 basepath : '/',63 defaultRoute : {64 callback : function() {65 Express.halt('Page or file cannot be found', 'Not Found')65 Express.status('Not Found')66 'Page or file cannot be found'67 }68 }69 },70
282 unmodified lines
353 */354 355 halt : function(body, status) {356 this.status(status || 200)356 Express.server.finished(this.response.body = body)357 Express.server.finished(body)358 },359 360 /**361 * Get or set response _name_ header.
318 unmodified lines
modified:spec/spec.routing.js+3 added-1 removed