Skip to content
Myr

Added ETag support to Request#sendfile()

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

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

2 files+27 added−7 removed

  • other:+27 added−7 removed

2 files+27 added−7 removed

modified:lib/express/plugins/static.js+25 added-4 removed
modified:lib/express/request.js+2 added-3 removed
202 unmodified lines
203 /**204 * Transfer the given _stream_ with optional _callback_.205 *206 * @param {Stream} stream207 * @param {function} callback208 * @return {Request}209 * @api public210 */211
2 unmodified lines
214 first = true215 stream216 .addListener('error', function(err){217 if (first)217 return 'errno' in err && err.errno === 2218 ? self.notFound()219 : self.error(err)218 return self.error(err)219 self.response.end()220 if (callback !== undefined) callback(err)221 })222 .addListener('data', function(data){
167 unmodified lines