Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Remove empty parts of the parsed URI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ujh committed Jun 21, 2009
1 parent 3a44efe commit 6550e8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/http.js
Expand Up @@ -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;
};

Expand Down

0 comments on commit 6550e8c

Please sign in to comment.