Skip to content

Commit b9b3bc5

Browse files
authored
Merge pull request #40 from karimabdelhakim/master
fix issue #37 regarding method location
2 parents 7387ec7 + ed38f29 commit b9b3bc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

suds/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def __init__(self, url, **kwargs):
104104
options = Options()
105105
options.transport = HttpAuthenticated()
106106
self.options = options
107-
self.options.location = url
108107
options.cache = ObjectCache(days=1)
109108
self.set_options(**kwargs)
110109
reader = DefinitionsReader(options, Definitions)
@@ -729,7 +728,7 @@ def failed(self, binding, error):
729728

730729
def location(self):
731730
p = Unskin(self.options)
732-
return p.get('location', self.method.location)
731+
return p.get('location', self.method.location.decode('utf-8'))
733732

734733
def last_sent(self, d=None):
735734
key = 'tx'

0 commit comments

Comments
 (0)