🐛 — Fix SSL check cert

Some (stupid) services don’t answer the same way when getting requested with HEAD or GET.
Like GET -> 200, HEAD -> 405.
https://github.com/h2non/imaginary is an example of such a service.
This commit is contained in:
Luc Didry 2023-10-25 14:50:44 +02:00
parent aee1545814
commit 5ef8600034

View file

@ -46,7 +46,7 @@ class SSLCertificateExpiration(BaseCheck):
async def run(self):
"""Returns the number of days in which the certificate will expire."""
response = await self.http_client.head(self.task.url)
response = await self.http_client.get(self.task.url)
if response.is_error:
raise