Skip to content
Myr

removed old req.get() for now

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 27e696b · Browse files · 1 file+0 added−26 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−26 removed

  • other:+0 added−26 removed

1 file+0 added−26 removed

modified:lib/request.js-26 removed
59 unmodified lines
60 }61};6263/**64 * Get `field`'s `param` value, defaulting to ''.65 *66 * Examples:67 *68 * req.get('content-disposition', 'filename');69 * // => "something.png"70 *71 * req.get('content-disposition', 'rawr');72 * // => ""73 *74 * @param {String} field75 * @param {String} param76 * @return {String}77 * @api public78 */7980// req.get = function(field, param){81// // TODO: rename... add tests, make .get() .header()82// var val = this.header(field);83// if (!val) return '';84// var regexp = new RegExp(param + ' *= *(?:"([^"]+)"|([^;]+))', 'i');85// if (!regexp.exec(val)) return '';86// return RegExp.$1 || RegExp.$2;87// };8889/**64 * Check if the given `type` is acceptable,65 * otherwise you should respond with 406 "Not Acceptable".66 *67 * Examples:
293 unmodified lines