From 5ef860003475d0372daf827132088628bfd6b3b3 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Wed, 25 Oct 2023 14:50:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E2=80=94=20Fix=20SSL=20check=20?= =?UTF-8?q?cert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- argos/checks/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argos/checks/checks.py b/argos/checks/checks.py index e6b3d55..39ce03a 100644 --- a/argos/checks/checks.py +++ b/argos/checks/checks.py @@ -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