Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2020-09-07 16:35:20 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2020-09-16 09:23:40 +0300
commit4831278a16d0cbe9e54ba89f1bf4f114aed06e69 (patch)
tree09a077c3fc5524ad7002be50f1e6b087afb2046e /src
parenteb9d7a437e960753a7344d7e7885e6e3df4370aa (diff)
url: remove U+0000 case in the fragment state
Port of https://github.com/whatwg/url/pull/486 PR-URL: https://github.com/nodejs/node/pull/33770 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_url.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_url.cc b/src/node_url.cc
index bd4932c0ab0..8e6906790a3 100644
--- a/src/node_url.cc
+++ b/src/node_url.cc
@@ -2084,8 +2084,6 @@ void URL::Parse(const char* input,
url->flags |= URL_FLAGS_HAS_FRAGMENT;
url->fragment = std::move(buffer);
break;
- case 0:
- break;
default:
AppendOrEscape(&buffer, ch, FRAGMENT_ENCODE_SET);
}