From f1792784ee0d4648eccb3d1188570a82fc8d6317 Mon Sep 17 00:00:00 2001 From: Sky O Date: Fri, 29 Mar 2024 17:26:21 +0000 Subject: [PATCH] Make bytes like --- moto/moto_proxy/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/moto_proxy/utils.py b/moto/moto_proxy/utils.py index 8b75eb571..4e3a2dd9b 100644 --- a/moto/moto_proxy/utils.py +++ b/moto/moto_proxy/utils.py @@ -89,11 +89,11 @@ def get_body_from_form_data( for part in parts: for header in part.headers: - if 'name="upload_file"' in header.value: + if b'name="upload_file"' in header.value: headers["key"] = "upload_file" data = part.data else: - if 'name="file"' in header.value: + if b'name="file"' in header.value: data = part.data else: headers["file"] = part.data.decode("utf-8")