[wgem] filling preset app options

This commit is contained in:
Vinícius Moreira
2019-12-16 18:09:28 -03:00
parent 2cdd5b59f5
commit a602a583e3
10 changed files with 83 additions and 23 deletions

View File

@@ -73,6 +73,5 @@ class HttpClient:
return system.get_human_size_str(size)
def exists(self, url: str) -> bool:
res = self.session.get(url=url, allow_redirects=True, ignore_ssl=True)
res = self.session.head(url=url, allow_redirects=True, verify=False, timeout=5)
return res.status_code == 200