diff --git a/lib/url.js b/lib/url.js index 3091aaed572852..82209db01c8c31 100644 --- a/lib/url.js +++ b/lib/url.js @@ -276,7 +276,6 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { var p = this.port ? ':' + this.port : ''; var h = this.hostname || ''; this.host = h + p; - this.href += this.host; // strip [ and ] from the hostname // the host field still retains them, though