mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-24 06:43:44 +03:00
web check now use head method, close #7
This commit is contained in:
parent
faa4afbd72
commit
d1fab3f8e5
|
@ -27,8 +27,9 @@ class HttpChecker(BaseChecker):
|
|||
|
||||
start_time = time.time()
|
||||
try:
|
||||
request = self.session.get(
|
||||
url
|
||||
request = self.session.head(
|
||||
url,
|
||||
allow_redirects=True,
|
||||
)
|
||||
# TODO: requests.exceptions.InvalidURL failed to parse exception
|
||||
except ConnectionError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user