File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 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):
4242 return '&' .join (map ('=' .join , sorted (params .items (), key = lambda x : x [0 ])))
4343
4444def process_response (status , body ):
45- if status == 200 :
45+ if status == 200 or status == 202 :
4646 return json .loads (body )
47- if status == 202 :
48- return True
4947 elif status == 400 :
5048 raise PusherBadRequest (body )
5149 elif status == 401 :
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ def notification_client(self):
270270 return self ._notification_client
271271
272272 def notify (self , interest , notification ):
273- self ._notification_client .notify (interest , notification )
273+ return self ._notification_client .notify (interest , notification )
274274
275275 def _data_to_string (self , data ):
276276 if isinstance (data , six .string_types ):
You can’t perform that action at this time.
0 commit comments