mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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>
This commit is contained in:
1 parent
86b9d3af98
commit
170a6cb33e
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user