summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/url.js b/lib/url.js
index 385061b678..64aa7bc59b 100644
--- a/lib/url.js
+++ b/lib/url.js
@@ -781,6 +781,7 @@ Url.prototype.resolveObject = function(relative) {
// it's absolute.
if (relative.host || relative.host === '') {
result.host = relative.host;
+ result.port = relative.port;
result.auth = null;
}
if (relative.hostname || relative.hostname === '') {