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:
authorAnna Henningsen <anna@addaleax.net>2022-01-30 00:14:02 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2022-02-11 14:40:10 +0300
commitacd35ecbe733215df05af80103db561eaeadb58c (patch)
treecf3088f01a61c24aef29ed1ac9ba7e09b6d08089 /src/node_url.cc
parentba5b5acaf10799206229793f71a4f6542235439f (diff)
src: fix query/fragment serialization in URL::SerializeURL
These are presumably typos. PR-URL: https://github.com/nodejs/node/pull/41759 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Diffstat (limited to 'src/node_url.cc')
-rw-r--r--src/node_url.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_url.cc b/src/node_url.cc
index 49f93f5fa20..056c6c466ba 100644
--- a/src/node_url.cc
+++ b/src/node_url.cc
@@ -1576,10 +1576,10 @@ std::string URL::SerializeURL(const struct url_data* url,
}
}
if (url->flags & URL_FLAGS_HAS_QUERY) {
- output = "?" + url->query;
+ output += "?" + url->query;
}
if (!exclude && url->flags & URL_FLAGS_HAS_FRAGMENT) {
- output = "#" + url->fragment;
+ output += "#" + url->fragment;
}
return output;
}