diff --git a/src/HttpLibrary/__init__.py b/src/HttpLibrary/__init__.py index 9e433fd..8a905cf 100644 --- a/src/HttpLibrary/__init__.py +++ b/src/HttpLibrary/__init__.py @@ -503,7 +503,7 @@ def set_basic_auth(self, username, password): if isinstance(credentials, str): credentials = credentials.encode() self.set_request_header( - "Authorization", "Basic %s" % b64encode(credentials)) + "Authorization", "Basic %s" % b64encode(credentials).decode('utf-8')) # payload