Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/uri/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl PathAndQuery {
// percent-encoded in the path. If it should have been
// percent-encoded, then error.
#[rustfmt::skip]
0x21 |
0x20..=0x21 |
0x24..=0x3B |
0x3D |
0x40..=0x5F |
Expand Down Expand Up @@ -561,6 +561,11 @@ mod tests {
assert_eq!("/🍕", pq("/🍕").path());
}

#[test]
fn allow_space_in_path() {
assert_eq!("/dav/With Space/", pq("/dav/With Space/").path());
}

#[test]
fn allow_utf8_in_query() {
assert_eq!(Some("pizza=🍕"), pq("/test?pizza=🍕").query());
Expand Down
Loading