Skip to content
Myr

todo

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 a0d0ac6 · Browse files · 1 file+1 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

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/request.js+1 added
87 unmodified lines
88 * @api public89 */9091req.get = function(field, param){92 // TODO: rename... add tests, make .get() .header()93 var val = this.header(field);94 if (!val) return '';95 var regexp = new RegExp(param + ' *= *(?:"([^"]+)"|([^;]+))', 'i');96 if (!regexp.exec(val)) return '';
336 unmodified lines