diff options
author | glowe <graham@spinlag.com> | 2019-11-05 21:04:55 -0500 |
---|---|---|
committer | glowe <graham@spinlag.com> | 2019-11-29 17:29:39 -0500 |
commit | 3d322f96e3ee2233c0823d1a0aed0b608c8c6d8d (patch) | |
tree | b9e38358ef9d8f4925e02f50e9feae358390ffd2 /components/script/dom | |
parent | afbcbf75eaa63ff0eec8fd3858e9155eb8dbadaa (diff) | |
download | servo-3d322f96e3ee2233c0823d1a0aed0b608c8c6d8d.tar.gz servo-3d322f96e3ee2233c0823d1a0aed0b608c8c6d8d.zip |
Add CRLF to encoded multipart form data
Some WPT tests were failing because they expected the body for a
multipart form data response to end with a CRLF. So I updated
encode_multipart_form_data to add the missing terminator.
Diffstat (limited to 'components/script/dom')
-rwxr-xr-x | components/script/dom/htmlformelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index b09804e397c..913f5f8530a 100755 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -1366,7 +1366,7 @@ pub fn encode_multipart_form_data( } } - let mut boundary_bytes = format!("\r\n--{}--", boundary).into_bytes(); + let mut boundary_bytes = format!("\r\n--{}--\r\n", boundary).into_bytes(); result.append(&mut boundary_bytes); result |