From 34c00895c637a3564301143f998d892d763c20cd Mon Sep 17 00:00:00 2001 From: Sky O Date: Fri, 29 Mar 2024 18:49:05 +0000 Subject: [PATCH] Use str --- moto/moto_proxy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/moto_proxy/utils.py b/moto/moto_proxy/utils.py index 864bcfb16..015facae8 100644 --- a/moto/moto_proxy/utils.py +++ b/moto/moto_proxy/utils.py @@ -100,7 +100,7 @@ def get_body_from_form_data( data = part.data print("YO SETTING FILE") else: - match = re.search(r'name="([^"]*)"', header.value) + match = re.search(r'name="([^"]*)"', header.value.decode("utf-8")) if match: name = match.group(1) print("YO GOT NAME", name)