mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +01:00
Default user agent.
This commit is contained in:
parent
956a156b21
commit
255125bb0b
@ -70,7 +70,10 @@ def strError(e):
|
|||||||
else:
|
else:
|
||||||
return str(e)
|
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):
|
def getUrlFd(url, headers=None):
|
||||||
"""Gets a file-like object for a url."""
|
"""Gets a file-like object for a url."""
|
||||||
if headers is None:
|
if headers is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user