Update 'states/_modules/syncthing.py'
This commit is contained in:
parent
538e5e9b8d
commit
fddceb4459
@ -63,7 +63,8 @@ def insync(url, verify, apikey):
|
||||
def restart(url, verify, apikey):
|
||||
fullurl = f"{url}/rest/system/restart"
|
||||
try:
|
||||
req = requests.post(fullurl,
|
||||
req = requests.request("post",
|
||||
fullurl,
|
||||
verify=verify,
|
||||
headers={"X-API-Key": apikey})
|
||||
except (requests.exceptions.RequestException) as exc:
|
||||
|
Loading…
Reference in New Issue
Block a user