File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,8 @@ def make_query_string(params):
42
42
return '&' .join (map ('=' .join , sorted (params .items (), key = lambda x : x [0 ])))
43
43
44
44
def process_response (status , body ):
45
- if status == 200 :
45
+ if status == 200 or status == 202 :
46
46
return json .loads (body )
47
- if status == 202 :
48
- return True
49
47
elif status == 400 :
50
48
raise PusherBadRequest (body )
51
49
elif status == 401 :
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ def notification_client(self):
270
270
return self ._notification_client
271
271
272
272
def notify (self , interest , notification ):
273
- self ._notification_client .notify (interest , notification )
273
+ return self ._notification_client .notify (interest , notification )
274
274
275
275
def _data_to_string (self , data ):
276
276
if isinstance (data , six .string_types ):
You can’t perform that action at this time.
0 commit comments