mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +01:00
Default user agent.
This commit is contained in:
parent
956a156b21
commit
255125bb0b
@ -70,7 +70,10 @@ def strError(e):
|
||||
else:
|
||||
return str(e)
|
||||
|
||||
_headers = {'User-agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)'}
|
||||
_headers = {
|
||||
'User-agent': 'Mozilla/4.0 (compatible; Supybot %s)' % conf.version,
|
||||
}
|
||||
|
||||
def getUrlFd(url, headers=None):
|
||||
"""Gets a file-like object for a url."""
|
||||
if headers is None:
|
||||
|
Loading…
Reference in New Issue
Block a user