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:
Josh Matthews
2026-01-07 01:05:41 -05:00
committed by GitHub
parent 2bcad737fa
commit c6f2fc2eb5
11 changed files with 15 additions and 285 deletions

View File

@@ -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();