Make bytes like
This commit is contained in:
parent
011976de89
commit
f1792784ee
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user