Skip to content

Commit

Permalink
Let one-element non-Zato responses be handled properly (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariusz Suchojad committed Jun 5, 2013
1 parent 922e036 commit 92a43f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/zato-client/src/zato/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ def set_data(self, payload):
data_keys = data.keys()
if len(data_keys) == 1:
data_key = data_keys[0]
self.data = data[data_key]
if isinstance(data_key, basestring) and data_key.startswith('zato'):
self.data = data[data_key]
else:
self.data = data
else:
self.data = data

Expand Down

0 comments on commit 92a43f7

Please sign in to comment.