From 7897adeb7a8f531266d371fb305ed33f4e462b84 Mon Sep 17 00:00:00 2001 From: bain Date: Sun, 28 Nov 2021 01:19:30 +0100 Subject: [PATCH] change request type to head --- monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.py b/monitor.py index 126152c..d1359b4 100644 --- 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: