aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsync.py3
1 files changed, 2 insertions, 1 deletions
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: