mirror of https://gitlab.com/bashrc2/epicyon
Decode utf-8
parent
c71f30c3c1
commit
28111275f1
|
@ -293,7 +293,7 @@ def get_vcard(session, url: str, params: {}, debug: bool,
|
||||||
' failed with error code ' +
|
' failed with error code ' +
|
||||||
str(result.status_code) +
|
str(result.status_code) +
|
||||||
' headers: ' + str(session_headers))
|
' headers: ' + str(session_headers))
|
||||||
return result.content
|
return result.content.decode('utf-8')
|
||||||
except requests.exceptions.RequestException as ex:
|
except requests.exceptions.RequestException as ex:
|
||||||
session_headers2 = session_headers.copy()
|
session_headers2 = session_headers.copy()
|
||||||
if session_headers2.get('Authorization'):
|
if session_headers2.get('Authorization'):
|
||||||
|
|
Loading…
Reference in New Issue