From dd381ba4522b5281fef0c808b5315d19f2bf3a0d Mon Sep 17 00:00:00 2001 From: Sky O Date: Fri, 29 Mar 2024 16:13:13 +0000 Subject: [PATCH] Don't pass args to finalize --- moto/moto_proxy/utils.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) 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