Permalink
Browse files

todo

  • Loading branch information...
1 parent a0d0ac6 commit ff9b82c4f6924aba90aa1bedc009085a31c5bd66 @tj tj committed Nov 20, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/request.js
View
@@ -89,6 +89,7 @@ req.header = function(name, defaultValue){
*/
req.get = function(field, param){
+ // TODO: rename... add tests, make .get() .header()
var val = this.header(field);
if (!val) return '';
var regexp = new RegExp(param + ' *= *(?:"([^"]+)"|([^;]+))', 'i');

0 comments on commit ff9b82c

Please sign in to comment.