mirror of https://github.com/caronc/apprise
IFTTT requires upstream payload entries to be lowercase
parent
ef05cb682b
commit
40cb91df5e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue