Skip to content
Myr

Deprecate res.sendfile

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

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 2cb029f · Browse files · 2 files+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

2 files+4 added−0 removed

modified:lib/response.js+3 added
526 unmodified lines
527 file.pipe(this);528 this.on('finish', cleanup);529};530531res.sendfile = deprecate.function(res.sendfile,532 'res.sendfile: Use res.sendFile instead');533534/**535 * Transfer the file at the given `path` as an attachment.536 *537 * Optionally providing an alternate attachment `filename`,
415 unmodified lines
modified:History.md+1 added
2 unmodified lines
34 * add `res.sendFile`5 - accepts a file system path instead of a URL6 - requires an absolute path or `root` option specified7 * deprecate `res.sendfile` -- use `res.sendFile` instead8 * deps: qs@1.0.29 - Complete rewrite10 - Limits array length to 2011 - Limits object depth to 5
1974 unmodified lines