Permalink
Browse files

Update "urlParse" params.

Add "option" param to "urlParse" for "querystring.parse".
  • Loading branch information...
1 parent 2d0011f commit c4313dd1c1f931be2dca6ed026d4c25715a7f412 @invalid-email-address invalid-email-address committed Jun 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/url.js
View
@@ -89,7 +89,7 @@ var protocolPattern = /^([a-z0-9.+-]+:)/i,
},
querystring = require('querystring');
-function urlParse(url, parseQueryString, slashesDenoteHost) {
+function urlParse(url, parseQueryString, slashesDenoteHost, options) {
if (url && typeof(url) === 'object' && url.href) return url;
if (typeof url !== 'string') {
@@ -286,7 +286,7 @@ function urlParse(url, parseQueryString, slashesDenoteHost) {
out.search = rest.substr(qm);
out.query = rest.substr(qm + 1);
if (parseQueryString) {
- out.query = querystring.parse(out.query);
+ out.query = querystring.parse(out.query, null, null, options);
}
rest = rest.slice(0, qm);
} else if (parseQueryString) {

0 comments on commit c4313dd

Please sign in to comment.