Skip to content
Myr

Remove utils.contentDisposition

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 f31dcff · Browse files · 1 file+0 added−15 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+0 added−15 removed

  • other:+0 added−15 removed

1 file+0 added−15 removed

modified:lib/utils.js-15 removed
1/**2 * Module dependencies.3 */45var contentDisposition = require('content-disposition');6var deprecate = require('depd')('express');5var mime = require('send').mime;8var basename = require('path').basename;6var etag = require('etag');7var proxyaddr = require('proxy-addr');8var qs = require('qs');9var querystring = require('querystring');
100 unmodified lines
110 return ret;111};112113/**117 * Generate Content-Disposition header appropriate for the filename.118 * non-ascii filenames are urlencoded and a filename* parameter is added119 *120 * @param {String} filename121 * @return {String}122 * @api private123 */124125exports.contentDisposition = deprecate.function(contentDisposition,126 'utils.contentDisposition: use content-disposition npm module instead');127128/**114 * Parse accept params `str` returning an115 * object with `.value`, `.quality` and `.params`.116 * also includes `.originalIndex` for stable sorting117 *
139 unmodified lines