Make bytes like

This commit is contained in:
Sky O 2024-03-29 17:26:21 +00:00
parent 011976de89
commit f1792784ee

View File

@ -89,11 +89,11 @@ def get_body_from_form_data(
for part in parts:
for header in part.headers:
if 'name="upload_file"' in header.value:
if b'name="upload_file"' in header.value:
headers["key"] = "upload_file"
data = part.data
else:
if 'name="file"' in header.value:
if b'name="file"' in header.value:
data = part.data
else:
headers["file"] = part.data.decode("utf-8")