Don't pass args to finalize
This commit is contained in:
parent
0cde7e3d08
commit
dd381ba452
@ -61,20 +61,21 @@ def get_body_from_form_data(
|
|||||||
print("YO END")
|
print("YO END")
|
||||||
return
|
return
|
||||||
|
|
||||||
parser = multipart.MultipartParser(boundary=boundary,
|
parser = multipart.MultipartParser(
|
||||||
callbacks={
|
boundary=boundary,
|
||||||
"on_part_begin": on_part_begin,
|
callbacks={
|
||||||
"on_part_data": on_part_data,
|
"on_part_begin": on_part_begin,
|
||||||
"on_part_end": on_part_end,
|
"on_part_data": on_part_data,
|
||||||
"on_header_field": on_header_field,
|
"on_part_end": on_part_end,
|
||||||
"on_header_value": on_header_value,
|
"on_header_field": on_header_field,
|
||||||
"on_header_end": on_header_end,
|
"on_header_value": on_header_value,
|
||||||
"on_headers_finished": on_headers_finished,
|
"on_header_end": on_header_end,
|
||||||
"on_end": on_end,
|
"on_headers_finished": on_headers_finished,
|
||||||
}
|
"on_end": on_end,
|
||||||
)
|
}
|
||||||
|
)
|
||||||
parser.write(body)
|
parser.write(body)
|
||||||
parser.finalize(body)
|
parser.finalize()
|
||||||
|
|
||||||
print("YO PARTS", parts)
|
print("YO PARTS", parts)
|
||||||
data = None
|
data = None
|
||||||
|
Loading…
Reference in New Issue
Block a user