change request type to head
This commit is contained in:
parent
b66b63e6bd
commit
7897adeb7a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue