Skip to content
Myr

Moved onRequest down, added onEarlyRequest hook

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

authored by visionmedia · committed by visionmedia · parent d121d44 · Browse files · 1 file+2 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

1 file+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:lib/express.core.js+2 added-3 removed
176 unmodified lines
177 Express.response.body = null178 Express.response.status = 200179 Express.request = request180 request.headers = Express.arrayToHash(request.headers)181 Express.hook('onRequest')181 Express.hook('onEarlyRequest')182 request.uri.params = Express.parseNestedParams(request.uri.params)183 request.uri.path = Express.normalizePath(request.uri.path)184 Express.hook('onRequest')185 try { Express.response.body = Express.callRouteFor(request) }186 catch (e) { Express.fail(e) }187 Express.hook('onResponse')188 response.sendHeader(Express.response.status, Express.hashToArray(Express.response.headers))
434 unmodified lines
623 use(Express.DefaultContentType)624 625})()626626use(Express.Logger)627627get('login', function(){628 ' \629 <form action="/login" method="post"> \630 <label>Username:</label> \
14 unmodified lines