mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Python 3 unicode fixes.
This commit is contained in:
1 parent
8ec32fe7f3
commit
467d126b6c
7 files changed
+25
-22
No files matched your search
@@ -20,7 +20,7 @@ class HTTPBasicAuth(requests.auth.HTTPBasicAuth):
|
||||
|
||||
"""
|
||||
credentials = u'%s:%s' % (self.username, self.password)
|
||||
token = b64encode(credentials.encode('utf8')).strip()
|
||||
token = b64encode(credentials.encode('utf8')).strip().decode('latin1')
|
||||
r.headers['Authorization'] = 'Basic %s' % token
|
||||
return r
|
||||
|
||||
|
||||
Reference in new issue
Block a user