Skip to content

Commit 509367a

Browse files
committed
Update to_path_buf to ignore .s
1 parent 4dc7f54 commit 509367a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/http/src/uri/segments.rs

+2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ impl<'a> Segments<'a, Path> {
218218
for segment in self.clone() {
219219
if segment == ".." {
220220
buf.pop();
221+
} else if segment == "." {
222+
continue;
221223
} else if !allow_dotfiles && segment.starts_with('.') {
222224
return Err(PathError::BadStart('.'))
223225
} else if segment.starts_with('*') {

0 commit comments

Comments
 (0)