summaryrefslogtreecommitdiff
path: root/lib/internal/url.js
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2017-06-27 11:28:24 +0800
committerTimothy Gu <timothygu99@gmail.com>2017-07-05 12:07:15 +0800
commitb01ac75edcb68fff860ca131473ea6b985a56493 (patch)
tree55e5bc0d247d9d148598962c7f1de1583b881d48 /lib/internal/url.js
parent15599cbc977af3bc2a94365adc6687ca5e2bde04 (diff)
downloadandroid-node-v8-b01ac75edcb68fff860ca131473ea6b985a56493.tar.gz
android-node-v8-b01ac75edcb68fff860ca131473ea6b985a56493.tar.bz2
android-node-v8-b01ac75edcb68fff860ca131473ea6b985a56493.zip
url: normalize port on scheme change
PR-URL: https://github.com/nodejs/node/pull/13997 Refs: https://github.com/whatwg/url/pull/328 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'lib/internal/url.js')
-rw-r--r--lib/internal/url.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/url.js b/lib/internal/url.js
index fc344fbca0..6048777cfd 100644
--- a/lib/internal/url.js
+++ b/lib/internal/url.js
@@ -238,6 +238,7 @@ function onParseProtocolComplete(flags, protocol, username, password,
ctx.flags &= ~URL_FLAGS_SPECIAL;
}
ctx.scheme = protocol;
+ ctx.port = port;
}
function onParseHostComplete(flags, protocol, username, password,