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
diff options
context:
space:
mode:
authorDaijiro Wachi <daijiro.wachi@gmail.com>2020-10-05 13:22:44 +0300
committerDaijiro Wachi <daijiro.wachi@gmail.com>2020-10-12 09:06:55 +0300
commitbb62f4ad9e10007734c737c85df718eafa626503 (patch)
tree0cab6c8c778aa2cfc317140bbcbf8afbe2b4f524 /src/inspector_agent.cc
parenta844387eaaa726ecc33adaa24d35ca980b65f2aa (diff)
url: file URL path normalization
Refs: https://github.com/whatwg/url/pull/544 Refs: https://github.com/web-platform-tests/wpt/pull/25716 PR-URL: https://github.com/nodejs/node/pull/35477 Fixes: https://github.com/nodejs/node/issues/35429 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'src/inspector_agent.cc')
-rw-r--r--src/inspector_agent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index 4b7997a02fd..c54b2ab17fc 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -640,7 +640,7 @@ class NodeInspectorClient : public V8InspectorClient {
node::url::URL url = node::url::URL::FromFilePath(resource_name);
// TODO(ak239spb): replace this code with url.href().
// Refs: https://github.com/nodejs/node/issues/22610
- return Utf8ToStringView(url.protocol() + "//" + url.path());
+ return Utf8ToStringView(url.protocol() + "/" + url.path());
}
node::Environment* env_;