mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Use the url crate without its query_encoding feature
This commit is contained in:
parent
43a4f01647
commit
a3ac21d23d
5 changed files with 44 additions and 39 deletions
|
@ -1386,8 +1386,7 @@ impl Extractable for FormData {
|
|||
|
||||
impl Extractable for URLSearchParams {
|
||||
fn extract(&self) -> (Vec<u8>, Option<DOMString>) {
|
||||
// Default encoding is UTF-8.
|
||||
(self.serialize(None).into_bytes(),
|
||||
(self.serialize_utf8().into_bytes(),
|
||||
Some(DOMString::from("application/x-www-form-urlencoded;charset=UTF-8")))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue