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