mirror of
https://github.com/servo/servo
synced 2026-04-26 09:35:26 +02:00
script: Capitalize Content-Type key in formdata. (#41722)
The tests were performing exact string matching on the contents of the request body, so this change allows them to match. Testing: Newly passing tests. --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
@@ -1990,7 +1990,7 @@ pub(crate) fn encode_multipart_form_data(
|
||||
.parse()
|
||||
.unwrap_or(mime::TEXT_PLAIN);
|
||||
let mut type_bytes = format!(
|
||||
"Content-Disposition: {}\r\ncontent-type: {}\r\n\r\n",
|
||||
"Content-Disposition: {}\r\nContent-Type: {}\r\n\r\n",
|
||||
content_disposition, content_type
|
||||
)
|
||||
.into_bytes();
|
||||
|
||||
Reference in New Issue
Block a user