Skip to content
Myr

Moving code around

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

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

  • other:+5 added−7 removed

1 file+5 added−7 removed

modified:lib/express.core.js+5 added-7 removed
28 unmodified lines
29 30 hookCallbacks : {31 request : [32 33 // Headers hash34 35 function (request, response) {36 Express.request = request37 request.headers = Express.arrayToHash(request.headers)38 },39 33 // Cookie parsing34 35 function (request, response) {36 Express.response.cookie = request.cookie = Express.parseCookie(request.headers['Cookie'])37 }38 ],39 40 response : [41 42 // Content length43 44 function() {45 Express.header('Content-Length', (Express.response.body || '').length)46 }47 ]
21 unmodified lines
69 */70 71 start : function(port) {72 this.server.listen(port || 3000, function(request, response){73 Express.request = request74 request.headers = Express.arrayToHash(request.headers)75 Express.hook('request', request, response)76 request.uri.params = Express.parseNestedParams(request.uri.params)77 request.uri.path = Express.normalizePath(request.uri.path)78 Express.response.body = Express.callRouteFor(request)
454 unmodified lines