Skip to content
Myr

misc refactoring

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 0e39597 · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/response.js+1 added-1 removed
262 unmodified lines
263 * @api public264 */265266res.attachment = function(filename){267 if (filename) this.contentType(filename);267 if (filename) this.type(filename);268 this.header('Content-Disposition', filename269 ? 'attachment; filename="' + basename(filename) + '"'270 : 'attachment');271 return this;
286 unmodified lines