We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9f54d7 commit dced2d7Copy full SHA for dced2d7
1 file changed
src/sources/http.rs
@@ -181,16 +181,14 @@ fn percent_decode(s: &str) -> Option<String> {
181
let mut i = 0;
182
183
while i < bytes.len() {
184
- if bytes[i] == b'%' && i + 2 < bytes.len() {
185
- if let Ok(byte) = u8::from_str_radix(
186
- std::str::from_utf8(&bytes[i + 1..i + 3]).ok()?,
187
- 16,
188
- ) {
+ if bytes[i] == b'%' && i + 2 < bytes.len()
+ && let Ok(byte) =
+ u8::from_str_radix(std::str::from_utf8(&bytes[i + 1..i + 3]).ok()?, 16)
+ {
189
result.push(byte);
190
i += 3;
191
continue;
192
}
193
- }
194
result.push(bytes[i]);
195
i += 1;
196
0 commit comments