Skip to content

Commit

Permalink
fix: compare // with pathname, not input
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed May 16, 2024
1 parent 213b5aa commit b965407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/url_aggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ bool url_aggregator::set_pathname(const std::string_view input) {
}
clear_pathname();
parse_path(input);
if (checkers::begins_with(input, "//") && !has_authority() &&
if (checkers::begins_with(get_pathname(), "//") && !has_authority() &&
!has_dash_dot()) {
buffer.insert(components.pathname_start, "/.");
components.pathname_start += 2;
Expand Down

0 comments on commit b965407

Please sign in to comment.