From ef1ed1db8901134c0f20458e944d786a3daa8fc9 Mon Sep 17 00:00:00 2001 From: Alex Ruiz Date: Thu, 10 Apr 2025 23:43:28 -0400 Subject: [PATCH] decode byte string params in add_auth --- botocore/crt/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/botocore/crt/auth.py b/botocore/crt/auth.py index 9919e20f46..d926f38a5a 100644 --- a/botocore/crt/auth.py +++ b/botocore/crt/auth.py @@ -114,7 +114,7 @@ def _crt_request_from_aws_request(self, aws_request): if aws_request.params: array = [] for param, value in aws_request.params.items(): - value = str(value) + value = value.decode("utf-8") if isinstance(value, bytes) else str(value) array.append(f'{param}={value}') crt_path = crt_path + '?' + '&'.join(array) elif url_parts.query: @@ -312,7 +312,7 @@ def _crt_request_from_aws_request(self, aws_request): if aws_request.params: array = [] for param, value in aws_request.params.items(): - value = str(value) + value = value.decode("utf-8") if isinstance(value, bytes) else str(value) array.append(f'{param}={value}') crt_path = crt_path + '?' + '&'.join(array) elif url_parts.query: