Skip to content
Myr

Fixed content length

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

authored by visionmedia · committed by visionmedia · parent 2035c31 · Browse files · 1 file+8 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

1 file+8 added−1 removed

  • other:+8 added−1 removed

1 file+8 added−1 removed

modified:lib/express.core.js+8 added-1 removed
43 unmodified lines
44 }45 },46 47 ContentLength : {48 onRequest : {48 onResponse : {49 'set content length' : function() {50 Express.header('Content-Length', (Express.response.body || '').length)51 }52 }
535 unmodified lines
588 puts('"' + request.method + ' /' + request.uri.path + ' HTTP/' + request.httpVersion + '" - ' + Express.response.status)589 }590 }591 592 // --- Utilities593 594 // --- Expose595 596 get = Express.routeFunctionFor('get')597 post = Express.routeFunctionFor('post')598 del = Express.routeFunctionFor('delete')599 put = Express.routeFunctionFor('put')600 use = Express.addModule601 602 // --- Core Modules603 604 use(Express.RedirectHelpers)605 use(Express.ContentLength)606 607})()