mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-13 05:32:33 +01:00
Update default user agent to mention Limnoria
This commit is contained in:
parent
abe59022b4
commit
12c526bc1c
@ -71,7 +71,7 @@ allowDefaultOwner = False
|
|||||||
# Here we replace values in other modules as appropriate.
|
# Here we replace values in other modules as appropriate.
|
||||||
###
|
###
|
||||||
utils.web.defaultHeaders['User-agent'] = \
|
utils.web.defaultHeaders['User-agent'] = \
|
||||||
'Mozilla/5.0 (Compatible; Supybot %s)' % version
|
'Mozilla/5.0 (Compatible; Limnoria %s)' % version
|
||||||
|
|
||||||
###
|
###
|
||||||
# The standard registry.
|
# The standard registry.
|
||||||
|
@ -118,7 +118,7 @@ def strError(e):
|
|||||||
|
|
||||||
# Used to build defaultHeaders
|
# Used to build defaultHeaders
|
||||||
baseDefaultHeaders = {
|
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.
|
# overridable by other modules/plugins.
|
||||||
|
Loading…
Reference in New Issue
Block a user