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
|
||||
for i in range(2):
|
||||
try:
|
||||
resp = requests.get(url)
|
||||
resp = requests.head(url)
|
||||
except requests.exceptions.ConnectionError:
|
||||
passed = False
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue