- fix issue with returned reason
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ class APNsClient(object):
|
|||||||
|
|
||||||
url = '/3/device/{}'.format(token_hex)
|
url = '/3/device/{}'.format(token_hex)
|
||||||
response = self.__client.post('https://{}{}'.format(self.__server, url), headers=headers, data=json_payload)
|
response = self.__client.post('https://{}{}'.format(self.__server, url), headers=headers, data=json_payload)
|
||||||
return response.status_code, response.json()
|
return response.status_code, response.text
|
||||||
|
|
||||||
def get_notification_result(self, status: int, reason: str) -> Union[str, Tuple[str, str]]:
|
def get_notification_result(self, status: int, reason: str) -> Union[str, Tuple[str, str]]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user