Skip to content
Myr

Moved cookies

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

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

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:lib/express.core.js+5 added-2 removed
30 unmodified lines
31 request : [32 function (request, response) {33 Express.request = request34 request.headers = Express.arrayToHash(request.headers)35 },36 37 function (request, response) {38 Express.response.cookie = request.cookie = Express.parseCookie(request.headers['Cookie'])39 }40 ]41 },42
13 unmodified lines
56 57 start : function(port) {58 this.server.listen(port || 3000, function(request, response){59 Express.hook('request', request, response)56 request.cookie = Express.parseCookie(request.headers['Cookie'])60 61 request.uri.params = Express.parseNestedParams(request.uri.params)62 request.uri.path = Express.normalizePath(request.uri.path)59 Express.response.cookie = request.cookie63 Express.response.body = Express.callRouteFor(request)64 Express.prepareCookie()65 response.sendHeader(Express.response.status, Express.hashToArray(Express.response.headers))66 response.sendBody(Express.response.body || '')
450 unmodified lines