web check now use head method, close #7

This commit is contained in:
kiriharu 2021-01-05 15:43:45 +03:00
parent faa4afbd72
commit d1fab3f8e5

View File

@ -27,8 +27,9 @@ class HttpChecker(BaseChecker):
start_time = time.time() start_time = time.time()
try: try:
request = self.session.get( request = self.session.head(
url url,
allow_redirects=True,
) )
# TODO: requests.exceptions.InvalidURL failed to parse exception # TODO: requests.exceptions.InvalidURL failed to parse exception
except ConnectionError: except ConnectionError: