We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0ddaaf commit 658602aCopy full SHA for 658602a
1 file changed
src/path_safety.rs
@@ -82,7 +82,9 @@ fn hex_value(byte: u8) -> Option<u8> {
82
83
#[cfg(test)]
84
mod tests {
85
- use super::{safe_forward_path, safe_forward_path_and_query};
+ use super::safe_forward_path;
86
+ #[cfg(feature = "cache")]
87
+ use super::safe_forward_path_and_query;
88
89
#[test]
90
fn rejects_multi_encoded_parent_segments() {
@@ -97,6 +99,7 @@ mod tests {
97
99
}
98
100
101
102
103
fn accepts_safe_percent_encoded_path_and_query() {
104
assert!(safe_forward_path_and_query("/assets/%66ile.css?v=%252e"));
105
0 commit comments