mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[http] 'exists' accepting 403 as a valid response
This commit is contained in:
@@ -79,4 +79,4 @@ class HttpClient:
|
||||
|
||||
def exists(self, url: str) -> bool:
|
||||
res = self.session.head(url=url, allow_redirects=True, verify=False, timeout=5)
|
||||
return res.status_code == 200
|
||||
return res.status_code in (200, 403)
|
||||
|
||||
Reference in New Issue
Block a user