Default user agent.

This commit is contained in:
Jeremy Fincher 2004-08-20 05:31:27 +00:00
parent 956a156b21
commit 255125bb0b

View File

@ -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: