mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
Fix Authorization header value
This commit is contained in:
@@ -68,7 +68,7 @@ class URLLibHttpAdapter:
|
||||
if password:
|
||||
auth = "%s:%s" % (username, password)
|
||||
encoded_auth = base64.encodestring(auth.encode('utf-8'))[:-1]
|
||||
headers["Authorization"] = b"Basic %" + encoded_auth
|
||||
headers["Authorization"] = b"Basic " + encoded_auth
|
||||
|
||||
request = Request(url, data=body, headers=headers, method="POST")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user