From 40cb91df5ed89a1696c5009a8b94bd9bc155a7ab Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Thu, 21 Feb 2019 21:14:43 -0500 Subject: [PATCH] IFTTT requires upstream payload entries to be lowercase --- apprise/plugins/NotifyIFTTT.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apprise/plugins/NotifyIFTTT.py b/apprise/plugins/NotifyIFTTT.py index b0b006fa..da8b4459 100644 --- a/apprise/plugins/NotifyIFTTT.py +++ b/apprise/plugins/NotifyIFTTT.py @@ -158,8 +158,9 @@ class NotifyIFTTT(NotifyBase): # any entries defined above) payload.update(self.add_tokens) - # Eliminate fields flagged for removal - payload = {x: y for x, y in payload.items() + # Eliminate fields flagged for removal otherwise ensure all tokens are + # lowercase since that is what the IFTTT server expects from us. + payload = {x.lower(): y for x, y in payload.items() if x not in self.del_tokens} # Track our failures