From 09685404ea882781da4b8030ab7dd0573b61a51c Mon Sep 17 00:00:00 2001 From: Leonid R Date: Fri, 25 Mar 2016 23:30:01 +0400 Subject: [PATCH] Fixed spelling in client.py --- apns2/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apns2/client.py b/apns2/client.py index 8f8632f..7117c59 100644 --- a/apns2/client.py +++ b/apns2/client.py @@ -21,11 +21,11 @@ class APNsClient(object): ssl_context.load_cert_chain(cert_file) self.__connection = HTTP20Connection(server, port, ssl_context=ssl_context) - def send_notification(self, token_hex, notification, prioriy=NotificationPriority.Immediate, topic=None): + def send_notification(self, token_hex, notification, priority=NotificationPriority.Immediate, topic=None): json_payload = dumps(notification.dict(), ensure_ascii=False, separators=(',',':')).encode('utf-8') headers = { - 'apns-priority': prioriy.value + 'apns-priority': priority.value } if topic: headers['apns-topic'] = topic