mirror of https://github.com/fafhrd91/actix-net
fix
This commit is contained in:
parent
34b58f415a
commit
56bba32029
|
@ -170,11 +170,7 @@ impl Quoter {
|
|||
idx += 1;
|
||||
}
|
||||
|
||||
cloned.map(|data| {
|
||||
// SAFETY: we get data from http::Uri, which does UTF-8 checks already
|
||||
// this code only decodes valid pct encoded values
|
||||
unsafe { String::from_utf8_unchecked(data) }
|
||||
})
|
||||
cloned.map(|data| String::from_utf8_lossy(&data).into_owned())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue