mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Remove empty parts of the parsed URI.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user