From ee490610a75d562c2b68434d959a6a77ef70d76b Mon Sep 17 00:00:00 2001 From: Ionut Turturica Date: Fri, 4 Apr 2014 18:06:18 -0700 Subject: [PATCH] Support / (and other reserved characters) in the password. --- src/SOAPpy/Client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SOAPpy/Client.py b/src/SOAPpy/Client.py index 8662989..5515ef6 100644 --- a/src/SOAPpy/Client.py +++ b/src/SOAPpy/Client.py @@ -220,7 +220,7 @@ class HTTPTransport: # if user is not a user:passwd format # we'll receive a failure from the server. . .I guess (??) if addr.user != None: - val = base64.encodestring(addr.user) + val = base64.encodestring(urllib.unquote_plus(addr.user)) r.putheader('Authorization','Basic ' + val.replace('\012','')) # This fixes sending either "" or "None"