From fbd1fbf27fbae72fb9b43d0a85cc84c61d9c0095 Mon Sep 17 00:00:00 2001 From: Sky O Date: Fri, 29 Mar 2024 19:13:21 +0000 Subject: [PATCH] Some more changes --- moto/moto_proxy/utils.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/moto/moto_proxy/utils.py b/moto/moto_proxy/utils.py index ef8e261d9..94d367e64 100644 --- a/moto/moto_proxy/utils.py +++ b/moto/moto_proxy/utils.py @@ -32,40 +32,32 @@ def get_body_from_form_data( def on_part_data(b,s,e): current_part.data = b[s:e] - print("YO PART DATA", b[s:e]) return def on_part_end(): parts.append(current_part) - print("YO PART ENDED") return def on_header_begin(): - print("YO HEADER BEGIN") + h = Header() + current_part.headers.append(h) return def on_header_end(): - print("YO HEADER END") return def on_header_field(b,s,e): - h = Header() - h.name = b[s:e] - current_part.headers.append(h) - print("YO HEADER FIELD", ) + current_part.headers[-1].name = b[s:e] return def on_header_value(b,s,e): current_part.headers[-1].value = b[s:e] - print("YO HEADER VALUE", b[s:e]) return def on_headers_finished(): - print("YO HEADER FINISHED") return def on_end(): - print("YO END") return parser = multipart.MultipartParser(