From 33cbbc41a3530b2efd6f7422dc49e74abf719b41 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sun, 27 Mar 2022 16:46:52 -0400 Subject: [PATCH] Use Gotify X-Gotify-Key Header vs params token --- apprise/plugins/NotifyGotify.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apprise/plugins/NotifyGotify.py b/apprise/plugins/NotifyGotify.py index 3b8b175896..d064c07a3e 100644 --- a/apprise/plugins/NotifyGotify.py +++ b/apprise/plugins/NotifyGotify.py @@ -170,11 +170,6 @@ def send(self, body, title='', notify_type=NotifyType.INFO, **kwargs): # Append our remaining path url += '{fullpath}message'.format(fullpath=self.fullpath) - # Define our parameteers - params = { - 'token': self.token, - } - # Prepare Gotify Object payload = { 'priority': self.priority, @@ -193,6 +188,7 @@ def send(self, body, title='', notify_type=NotifyType.INFO, **kwargs): headers = { 'User-Agent': self.app_id, 'Content-Type': 'application/json', + 'X-Gotify-Key': self.token, } self.logger.debug('Gotify POST URL: %s (cert_verify=%r)' % ( @@ -206,7 +202,6 @@ def send(self, body, title='', notify_type=NotifyType.INFO, **kwargs): try: r = requests.post( url, - params=params, data=dumps(payload), headers=headers, verify=self.verify_certificate,