mirror of
https://github.com/caronc/apprise.git
synced 2025-01-01 03:29:53 +01:00
Use Gotify X-Gotify-Key Header vs params token (#558)
This commit is contained in:
parent
4cc5be0d6d
commit
fc60dcdd0d
@ -170,11 +170,6 @@ class NotifyGotify(NotifyBase):
|
||||
# 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 @@ class NotifyGotify(NotifyBase):
|
||||
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 @@ class NotifyGotify(NotifyBase):
|
||||
try:
|
||||
r = requests.post(
|
||||
url,
|
||||
params=params,
|
||||
data=dumps(payload),
|
||||
headers=headers,
|
||||
verify=self.verify_certificate,
|
||||
|
Loading…
Reference in New Issue
Block a user