diff options
-rwxr-xr-x | sync.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |