diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-10-31 17:30:01 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-10-31 19:08:26 +0100 |
commit | a3ac21d23d3fc717334bf4c8df0f9b1c613cbaaa (patch) | |
tree | c73db7dcfa88d39d4fd4144d8ec443dbe8d64aee /components/script/dom/xmlhttprequest.rs | |
parent | 43a4f016471d1e1d6b4072f9dd8cf3b8f9dfe48c (diff) | |
download | servo-a3ac21d23d3fc717334bf4c8df0f9b1c613cbaaa.tar.gz servo-a3ac21d23d3fc717334bf4c8df0f9b1c613cbaaa.zip |
Use the url crate without its query_encoding feature
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index 580189f5768..c7745546717 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -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"))) } } |