Skip to content
Myr

fix res.sendfile() callback

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

what the hell... I was just told readable streams have finish not end, make up your mind node!

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 36e42db · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:lib/response.js+2 added-2 removed
322 unmodified lines
323 next(err);324 }325326 // streaming327 function stream() {327 function stream(stream) {328 if (done) return;329 cleanup();330 if (fn) self.on('finish', fn);330 if (fn) stream.on('end', fn);331 }332333 // cleanup334 function cleanup() {
470 unmodified lines