Remove empty parts of the parsed URI.
This commit is contained in:
parent
3a44efea69
commit
6550e8cfa0
@ -67,6 +67,10 @@ node.http.parseUri = function (str) {
|
|||||||
});
|
});
|
||||||
uri.toString = function () { return 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;
|
return uri;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user