summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.js b/lib/url.js
index 6227c8a057..8a76d1fc10 100644
--- a/lib/url.js
+++ b/lib/url.js
@@ -196,7 +196,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
this.query = this.search.slice(1);
}
} else if (parseQueryString) {
- this.search = '';
+ this.search = null;
this.query = Object.create(null);
}
return this;
@@ -389,7 +389,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
}
} else if (parseQueryString) {
// no query string, but parseQueryString still requested
- this.search = '';
+ this.search = null;
this.query = Object.create(null);
}