diff --git a/moto/moto_proxy/utils.py b/moto/moto_proxy/utils.py index e40fdeff6..bd1646506 100644 --- a/moto/moto_proxy/utils.py +++ b/moto/moto_proxy/utils.py @@ -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