Skip to content
Myr

Default response.headers to empty object

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

authored by visionmedia · committed by visionmedia · parent 4f5ab5e · Browse files · 2 files+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

2 files+1 added−1 removed

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

2 files+1 added−1 removed

modified:lib/express/spec/mock-routes.js-1 removed
modified:lib/express/core.js+1 added
76 unmodified lines
77 .listen(this.port, this.host)78 puts('Express started at http://' + this.host + ':' + this.port + '/')79 },80 route: function(request, response){81 response.headers = {}82 this.request = request, this.response = response83 this.request.uri.path = normalizePath(this.request.uri.path)84 if (typeof (this.response.body = Express.router.route(request)) == 'string')85 this.respond()
70 unmodified lines