url: remove redundant assignment in url.parse
authorAlex Kocharin <alex@kocharin.ru>
Sun, 8 Mar 2015 01:11:37 +0000 (04:11 +0300)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Sun, 8 Mar 2015 20:36:29 +0000 (16:36 -0400)
PR-URL: https://github.com/iojs/io.js/pull/1095
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Nicu Micleușanu <micnic90@gmail.com>
lib/url.js

index 3091aae..82209db 100644 (file)
@@ -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