aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Oster2014-07-19 00:10:54 -0700
committerJay Oster2014-07-19 00:10:54 -0700
commite914d2852a14273856068f88d3786a5c25f25991 (patch)
tree0d07ac43529b3ccc2870ebd39dcdaf773d00bdf0
parent3dfd0de909066cbbd8407b7889eeadb788197989 (diff)
downloadpubnub-python-e914d2852a14273856068f88d3786a5c25f25991.tar.bz2
Fix PUT providing the response message instead of the object data
-rw-r--r--Pubnub.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Pubnub.py b/Pubnub.py
index 3c97643..8ab463b 100644
--- a/Pubnub.py
+++ b/Pubnub.py
@@ -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 = []