diff options
author | Timothy Gu <timothygu99@gmail.com> | 2017-06-27 11:28:24 +0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2017-07-05 12:07:15 +0800 |
commit | b01ac75edcb68fff860ca131473ea6b985a56493 (patch) | |
tree | 55e5bc0d247d9d148598962c7f1de1583b881d48 /lib/internal/url.js | |
parent | 15599cbc977af3bc2a94365adc6687ca5e2bde04 (diff) | |
download | android-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.js | 1 |
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, |