change request type to head

This commit is contained in:
bain 2021-11-28 01:19:30 +01:00
parent b66b63e6bd
commit 7897adeb7a
No known key found for this signature in database
GPG key ID: A708F07AF3D92C02

View file

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