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: