Skip to content

Commit ee49061

Browse files
committed
Support / (and other reserved characters) in the password.
1 parent 986c2df commit ee49061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/SOAPpy/Client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def call(self, addr, data, namespace, soapaction = None, encoding = None,
220220
# if user is not a user:passwd format
221221
# we'll receive a failure from the server. . .I guess (??)
222222
if addr.user != None:
223-
val = base64.encodestring(addr.user)
223+
val = base64.encodestring(urllib.unquote_plus(addr.user))
224224
r.putheader('Authorization','Basic ' + val.replace('\012',''))
225225

226226
# This fixes sending either "" or "None"

0 commit comments

Comments
 (0)