Closed maksymilian-majer closed 6 years ago
The authorization header is set in line 55 like this:
self.__headers['Authorization'] = 'Basic {0}'.format(enc64("{self.email}:{self.password}".format(self=self).encode("utf8")))
This produces a string like: 'Basic b\'some_base_64\''
'Basic b\'some_base_64\''
Instead of: 'Basic some_base_64'
'Basic some_base_64'
This can be simply fixed by calling .decode() on the Base64 encoded bytes.
.decode()
Fixed by #34
The authorization header is set in line 55 like this:
This produces a string like:
'Basic b\'some_base_64\''
Instead of:
'Basic some_base_64'
This can be simply fixed by calling
.decode()
on the Base64 encoded bytes.