Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bitcoinrpc/authproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ def __init__(self, service_url, service_name=None, timeout=HTTP_TIMEOUT,
else:
port = self.__url.port
(user, passwd) = (self.__url.username, self.__url.password)
try:
# This will not work with python2, try ignoring. Nothing bad
# will happen unless there are special quuoted characters in
# HTTP password.
passwd = urlparse.unquote(passwd)
except AttributeError:
pass
try:
user = user.encode('utf8')
except AttributeError:
Expand Down