From b84d51184a7c5411db6a03225ba673007a560247 Mon Sep 17 00:00:00 2001 From: Sky O Date: Fri, 29 Mar 2024 14:13:15 +0000 Subject: [PATCH] Try using slices --- moto/moto_proxy/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moto/moto_proxy/utils.py b/moto/moto_proxy/utils.py index afb94f094..76f68be81 100644 --- a/moto/moto_proxy/utils.py +++ b/moto/moto_proxy/utils.py @@ -13,10 +13,10 @@ def get_body_from_form_data( return def on_part_data(b,s,e): - print("YO PART DATA", b, s, e) + print("YO PART DATA", b[s:e]) return - def on_part_end(string: str): + def on_part_end(): print("YO PART ENDED") return @@ -29,11 +29,11 @@ def get_body_from_form_data( return def on_header_field(b,s,e): - print("YO HEADER FIELD", b, s, e) + print("YO HEADER FIELD", b[s:e]) return def on_header_value(b,s,e): - print("YO HEADER FIELD", b, s, e) + print("YO HEADER VALUE", b[s:e]) return def on_headers_finished():