From 80b722e6778e9dd7243980b1e4709a534997e87b Mon Sep 17 00:00:00 2001 From: Sky O Date: Fri, 29 Mar 2024 18:08:27 +0000 Subject: [PATCH] Leggo --- moto/moto_proxy/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/moto/moto_proxy/utils.py b/moto/moto_proxy/utils.py index d686adf26..d561e6f6e 100644 --- a/moto/moto_proxy/utils.py +++ b/moto/moto_proxy/utils.py @@ -95,16 +95,13 @@ def get_body_from_form_data( headers["key"] = "upload_file" data = part.data print("YO SET UPLOAD FILE") - break else: if b'name="file"' in header.value: data = part.data print("YO SETTING FILE") - break else: headers["file"] = part.data.decode("utf-8") print("YO COPING OUT") - break # name="x-amz-algorithm"', b'Content-Disposition':b'form-data; name="x-amz-credential"', b'Content-Disposition':b'form-data; name="x-amz-date"', b'Content-Disposition':b'form-data; name="policy"', b'Content-Disposition':b'form-data; name="x-amz-signature"', b'Content-Disposition':b'form-data; name="file"; filename="/run/user/1001/tmpi1gf2n_j/test_local_file.txt"'], # for prt in parser.parts():