From 255125bb0be942f9772294dbc5fd2f2ad34cf467 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 20 Aug 2004 05:31:27 +0000 Subject: [PATCH] Default user agent. --- src/webutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webutils.py b/src/webutils.py index 396b3e46e..93c623e75 100644 --- a/src/webutils.py +++ b/src/webutils.py @@ -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: