Decode utf-8

main
Bob Mottram 2022-02-15 16:03:10 +00:00
parent c71f30c3c1
commit 28111275f1
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ def get_vcard(session, url: str, params: {}, debug: bool,
' failed with error code ' +
str(result.status_code) +
' headers: ' + str(session_headers))
return result.content
return result.content.decode('utf-8')
except requests.exceptions.RequestException as ex:
session_headers2 = session_headers.copy()
if session_headers2.get('Authorization'):