Permalink
Browse files

Fix Authorization header value

1 parent 77189c6 commit 814d7fd22e69b904be82d847c655c8615bcdeb92 @sickill sickill committed Jun 18, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 asciinema/urllib_http_adapter.py
@@ -68,7 +68,7 @@ def post(self, url, fields={}, files={}, headers={}, username=None, password=Non
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")

0 comments on commit 814d7fd

Please sign in to comment.