From 12c526bc1c0d54d61ee4d5bc87da39e2e4ada328 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 8 Nov 2021 23:20:13 +0100 Subject: [PATCH] Update default user agent to mention Limnoria --- src/conf.py | 2 +- src/utils/web.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf.py b/src/conf.py index 353396b5b..6f13166ec 100644 --- a/src/conf.py +++ b/src/conf.py @@ -71,7 +71,7 @@ allowDefaultOwner = False # Here we replace values in other modules as appropriate. ### utils.web.defaultHeaders['User-agent'] = \ - 'Mozilla/5.0 (Compatible; Supybot %s)' % version + 'Mozilla/5.0 (Compatible; Limnoria %s)' % version ### # The standard registry. diff --git a/src/utils/web.py b/src/utils/web.py index 0f14b17b2..39c33a0a8 100644 --- a/src/utils/web.py +++ b/src/utils/web.py @@ -118,7 +118,7 @@ def strError(e): # Used to build defaultHeaders baseDefaultHeaders = { - 'User-agent': 'Mozilla/5.0 (compatible; utils.web python module)' + 'User-agent': 'Mozilla/5.0 (compatible; utils.web Limnoria module)' } # overridable by other modules/plugins.