Merge pull request #686 from Smallcubed/smallcubed-easydns-patch

Change the auth value to have a proper string not a binary rep
This commit is contained in:
Ross McFarland
2021-03-31 10:48:03 -07:00
committed by GitHub
+1 -1
View File
@@ -59,7 +59,7 @@ class EasyDNSClient(object):
self.base_path = self.SANDBOX if sandbox else self.LIVE
sess = Session()
sess.headers.update({'Authorization': 'Basic {}'
.format(self.auth_key)})
.format(self.auth_key.decode('utf-8'))})
sess.headers.update({'accept': 'application/json'})
self._sess = sess