mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
aquatic_http: urldecode_20_bytes: remove duplicate check
request-from-bytes performance seems to have regressed, I don't know why (+8%)
This commit is contained in:
parent
668b480e0f
commit
997482d46d
5 changed files with 1003 additions and 1010 deletions
|
|
@ -55,13 +55,6 @@ pub fn urldecode_20_bytes(value: &str) -> anyhow::Result<[u8; 20]> {
|
|||
anyhow::anyhow!("hex decode error: {:?}", err)
|
||||
)?;
|
||||
} else {
|
||||
if c as u32 > 255 {
|
||||
return Err(anyhow::anyhow!(
|
||||
"character not in single byte range: {:#?}",
|
||||
c
|
||||
));
|
||||
}
|
||||
|
||||
out_arr[i] = c as u8;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue