projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe36076
)
url: remove redundant assignment in url.parse
author
Alex Kocharin
<alex@kocharin.ru>
Sun, 8 Mar 2015 01:11:37 +0000
(
04:11
+0300)
committer
Jeremiah 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
patch
|
blob
|
history
diff --git
a/lib/url.js
b/lib/url.js
index
3091aae
..
82209db
100644
(file)
--- 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