From 1af68ef2fdb6754012d382cbe4376a33a6c9cb75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20H=C3=B6rsken?= Date: Sun, 11 Feb 2024 22:33:54 +0100 Subject: [PATCH] Add missing headers to engines request --- metadefender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadefender.py b/metadefender.py index af0badd..9815193 100644 --- a/metadefender.py +++ b/metadefender.py @@ -177,7 +177,7 @@ def _get_version_map(self, node: str) -> None: try: self.log.debug(f"_get_version_map: GET {url}") - r = self.session.get(url=url, timeout=self.timeout, verify=self.verify) + r = self.session.get(url=url, headers=self.headers, timeout=self.timeout, verify=self.verify) engines = r.json() for engine in engines: