From 19a9b5ad7edb31b8b227e7ef485b40cfc1add956 Mon Sep 17 00:00:00 2001 From: Voicu <99695945+VoicuAWS@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:49:51 -0800 Subject: [PATCH] Adding user agent to get request calls (#1023) --- cid/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cid/common.py b/cid/common.py index 1293356e..ebaad349 100644 --- a/cid/common.py +++ b/cid/common.py @@ -300,7 +300,7 @@ def track(self, action, dashboard_id): logger.debug(f"Issue logging action {action} for dashboard {dashboard_id} , due to a urllib3 exception {str(e)} . This issue will be ignored") def get_page(self, source): - resp = requests.get(source, timeout=10) + resp = requests.get(source, timeout=10, headers={'User-Agent': 'cid'}) resp.raise_for_status() return resp