This commit is contained in:
Sky O 2024-03-29 17:57:22 +00:00
parent 7eae837e24
commit 1c97aadd2f

View File

@ -88,7 +88,7 @@ def get_body_from_form_data(
headers: Dict[str, str] = {} headers: Dict[str, str] = {}
for part in parts: for part in parts:
if data is not None: if data is None:
for header in part.headers: for header in part.headers:
if b'name="upload_file"' in header.value: if b'name="upload_file"' in header.value:
headers["key"] = "upload_file" headers["key"] = "upload_file"