[http] 'exists' accepting 403 as a valid response

This commit is contained in:
Vinicius Moreira
2019-12-24 11:29:26 -03:00
parent 4fccba2750
commit 29baf1c5e1

View File

@@ -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)