diff options
Diffstat (limited to 'lib/url.js')
-rw-r--r-- | lib/url.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/url.js b/lib/url.js index 4c0ef0102f..6463424207 100644 --- a/lib/url.js +++ b/lib/url.js @@ -136,6 +136,9 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { } else { this.query = this.search.substr(1); } + } else if (parseQueryString) { + this.search = ''; + this.query = {}; } return this; } |