From c5d012c019fcd7d564df706e34000c7121ceef16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Thu, 7 Nov 2024 22:03:54 +0000 Subject: bump user_agent version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync.py b/sync.py index 2f9e126..c9e8820 100755 --- a/sync.py +++ b/sync.py @@ -20,6 +20,7 @@ from config import get_config schema_name = get_config().get('db_schemad', 'peeringdb') domain_name = get_config().get('domain_name', 'www.peeringdb.com') +user_agent = 'peeringdb-simplesync/0.2' #logging.basicConfig(level=logging.DEBUG) @@ -193,7 +194,7 @@ def main(): handle_auth(s) req_agent = s.headers.get('User-Agent') - s.headers.update({'User-Agent': f'peeringdb-simplesync/0.1 {req_agent:s}'}) + s.headers.update({'User-Agent': f'{user_agent:s} {req_agent:s}'}) keys = get_config().get('object_types') if not keys: -- cgit v1.2.1