diff options
| author | Jay Oster | 2014-07-19 00:10:54 -0700 | 
|---|---|---|
| committer | Jay Oster | 2014-07-19 00:10:54 -0700 | 
| commit | e914d2852a14273856068f88d3786a5c25f25991 (patch) | |
| tree | 0d07ac43529b3ccc2870ebd39dcdaf773d00bdf0 | |
| parent | 3dfd0de909066cbbd8407b7889eeadb788197989 (diff) | |
| download | pubnub-python-e914d2852a14273856068f88d3786a5c25f25991.tar.bz2 | |
Fix PUT providing the response message instead of the object data
| -rw-r--r-- | Pubnub.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -689,7 +689,7 @@ class PubnubBase(object):          def _put_callback(message):              self.ds_action_list.append(message) -            if 'message' in message and message['message'] != 'Path Set': +            if 'message' in message and message['message'] != 'Path set':                  self.error_callback(message['message'])          url_components = ['v1', 'datasync', 'sub-key', self.subscribe_key, 'pub-key', self.publish_key, 'obj-id', object_id, path] @@ -705,7 +705,7 @@ class PubnubBase(object):          def _error(message):              if error_callback is None: -                ready_callback(message, self.ds_action_list) +                ready_callback({ "error" : True, "message" : message }, self.ds_action_list)              else:                  error_callback(message, self.ds_action_list)              self.ds_action_list = [] | 
