diff --git a/rslib/ascii_percent_encoding/src/lib.rs b/rslib/ascii_percent_encoding/src/lib.rs index 46a5d747c..8b2b1d188 100644 --- a/rslib/ascii_percent_encoding/src/lib.rs +++ b/rslib/ascii_percent_encoding/src/lib.rs @@ -82,7 +82,8 @@ impl AsciiSet { } fn should_percent_encode(&self, byte: u8) -> bool { - !byte.is_ascii() || self.contains(byte) + // MODIFIED + byte.is_ascii() && self.contains(byte) } pub const fn add(&self, byte: u8) -> Self {