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")
|
||||
return
|
||||
|
||||
parser = multipart.MultipartParser(boundary=boundary,
|
||||
callbacks={
|
||||
"on_part_begin": on_part_begin,
|
||||
"on_part_data": on_part_data,
|
||||
"on_part_end": on_part_end,
|
||||
"on_header_field": on_header_field,
|
||||
"on_header_value": on_header_value,
|
||||
"on_header_end": on_header_end,
|
||||
"on_headers_finished": on_headers_finished,
|
||||
"on_end": on_end,
|
||||
}
|
||||
)
|
||||
parser = multipart.MultipartParser(
|
||||
boundary=boundary,
|
||||
callbacks={
|
||||
"on_part_begin": on_part_begin,
|
||||
"on_part_data": on_part_data,
|
||||
"on_part_end": on_part_end,
|
||||
"on_header_field": on_header_field,
|
||||
"on_header_value": on_header_value,
|
||||
"on_header_end": on_header_end,
|
||||
"on_headers_finished": on_headers_finished,
|
||||
"on_end": on_end,
|
||||
}
|
||||
)
|
||||
parser.write(body)
|
||||
parser.finalize(body)
|
||||
parser.finalize()
|
||||
|
||||
print("YO PARTS", parts)
|
||||
data = None
|
||||
|
Loading…
Reference in New Issue
Block a user