mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename encode_form_data to encode_multipart_form_data
This commit is contained in:
parent
8c2c0bd964
commit
9be649f8ed
1 changed files with 4 additions and 4 deletions
|
@ -270,9 +270,9 @@ impl HTMLFormElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#multipart/form-data-encoding-algorithm
|
// https://html.spec.whatwg.org/multipage/#multipart/form-data-encoding-algorithm
|
||||||
fn encode_form_data(&self, form_data: &mut Vec<FormDatum>,
|
fn encode_multipart_form_data(&self, form_data: &mut Vec<FormDatum>,
|
||||||
encoding: Option<EncodingRef>,
|
encoding: Option<EncodingRef>,
|
||||||
boundary: String) -> String {
|
boundary: String) -> String {
|
||||||
// Step 1
|
// Step 1
|
||||||
let mut result = "".to_owned();
|
let mut result = "".to_owned();
|
||||||
|
|
||||||
|
@ -385,7 +385,7 @@ impl HTMLFormElement {
|
||||||
let mime = mime!(Multipart / FormData; Boundary =(&boundary));
|
let mime = mime!(Multipart / FormData; Boundary =(&boundary));
|
||||||
load_data.headers.set(ContentType(mime));
|
load_data.headers.set(ContentType(mime));
|
||||||
|
|
||||||
self.encode_form_data(&mut form_data, None, boundary)
|
self.encode_multipart_form_data(&mut form_data, None, boundary)
|
||||||
}
|
}
|
||||||
// TODO: Support plain text encoding
|
// TODO: Support plain text encoding
|
||||||
FormEncType::TextPlainEncoded => "".to_owned()
|
FormEncType::TextPlainEncoded => "".to_owned()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue