mirror of https://github.com/fafhrd91/actix-net
Update url.rs
This commit is contained in:
parent
dfe46a3adf
commit
9dde944b46
|
@ -171,7 +171,7 @@ impl Quoter {
|
|||
}
|
||||
|
||||
cloned.map(|data| {
|
||||
// Unsafe: we get data from http::Uri, which does utf-8 checks already
|
||||
// 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) }
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue