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")