diff options
author | Ayush Gupta <AyushG3112@gmail.com> | 2018-05-02 21:51:20 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-05-18 16:24:05 +0300 |
commit | 11892b0b6422f6e983bfbde7ba342942dd2e2297 (patch) | |
tree | 4bae9cc12f532892305c971386253be5ce316cb5 /src/node_url.h | |
parent | 9b24be1340b702131efcf3fd7a65b7ac4c269711 (diff) |
url: introduce `URL_FLAGS_IS_DEFAULT_SCHEME_PORT` flag
Introduce `URL_FLAGS_IS_DEFAULT_SCHEME_PORT` flag which is retured
when the parser detects that the port passed is the default port
for that scheme.
PR-URL: https://github.com/nodejs/node/pull/20479
Fixes: https://github.com/nodejs/node/issues/20465
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_url.h')
-rw-r--r-- | src/node_url.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_url.h b/src/node_url.h index 6b526d15b07..b2eadf9923a 100644 --- a/src/node_url.h +++ b/src/node_url.h @@ -50,7 +50,8 @@ using v8::Value; XX(URL_FLAGS_HAS_HOST, 0x80) \ XX(URL_FLAGS_HAS_PATH, 0x100) \ XX(URL_FLAGS_HAS_QUERY, 0x200) \ - XX(URL_FLAGS_HAS_FRAGMENT, 0x400) + XX(URL_FLAGS_HAS_FRAGMENT, 0x400) \ + XX(URL_FLAGS_IS_DEFAULT_SCHEME_PORT, 0x800) \ enum url_parse_state { kUnknownState = -1, |