Remove empty parts of the parsed URI.

This commit is contained in:
Urban Hafner committed 2009-06-21 16:28:23 +02:00
1 parent 3a44efea69
commit 6550e8cfa0
1 file changed
+5 -1
+5 -1
View File
@@ -66,7 +66,11 @@ node.http.parseUri = function (str) {
}
});
uri.toString = function () { return str; };
for (var i = o.key.length - 1; i >= 0; i--){
if (uri[o.key[i]] == "") delete uri[o.key[i]];
};
return uri;
};