Skip to content
Myr

Deprecated Request#sendfile() and express/static

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

authored by visionmedia · committed by visionmedia · parent b8f54d6 · Browse files · 2 files+6 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+6 added−0 removed

  • other:+6 added−0 removed

2 files+6 added−0 removed

modified:lib/express/request.js+3 added
288 unmodified lines
289 * @param {string} path290 * @return {Request}291 * @api public292 */293 294 // DEPRECATED: remove in 0.9.0295 296 sendfile: function(path) {297 Ext.warn('Request#sendfile() is deprecated, it is now part of the Static plugin, use(Static) to re-gain this method')298 (new StaticFile(path)).send(this)299 return this300 }301})
modified:lib/express/static.js+3 added