monitor

Monitoring script
git clone git://git.bain.cz/monitor.git
Log | Files | Refs | README

commit 7897adeb7a8f531266d371fb305ed33f4e462b84
parent b66b63e6bd6db8937bdcdc9c1cae48d18e19fd2d
Author: bain <bain@bain.cz>
Date:   Sun, 28 Nov 2021 01:19:30 +0100

change request type to head

Diffstat:
Mmonitor.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monitor.py b/monitor.py @@ -73,7 +73,7 @@ def http_requirement(url: str, code: int) -> bool: passed = False for i in range(2): try: - resp = requests.get(url) + resp = requests.head(url) except requests.exceptions.ConnectionError: passed = False else: