Skip to content

Commit 364ec5b

Browse files
addaleaxbengl
authored andcommitted
src: fix query/fragment serialization in URL::SerializeURL
These are presumably typos. PR-URL: #41759 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent 6076291 commit 364ec5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_url.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1576,10 +1576,10 @@ std::string URL::SerializeURL(const struct url_data* url,
15761576
}
15771577
}
15781578
if (url->flags & URL_FLAGS_HAS_QUERY) {
1579-
output = "?" + url->query;
1579+
output += "?" + url->query;
15801580
}
15811581
if (!exclude && url->flags & URL_FLAGS_HAS_FRAGMENT) {
1582-
output = "#" + url->fragment;
1582+
output += "#" + url->fragment;
15831583
}
15841584
return output;
15851585
}

0 commit comments

Comments
 (0)