From 1333be72251bfc8e1fa21c018a6332270d4dd7f2 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 26 Sep 2012 16:52:45 +0200 Subject: [PATCH] HTTP improvements. --- dosagelib/configuration.py | 2 +- dosagelib/util.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dosagelib/configuration.py b/dosagelib/configuration.py index 8e2033666..ac8815dab 100644 --- a/dosagelib/configuration.py +++ b/dosagelib/configuration.py @@ -14,7 +14,7 @@ HtmlCopyright = u"Copyright © 2004-2008 "+HtmlAuthor Url = configdata.url SupportUrl = Url + u"/issues" Email = configdata.author_email -UserAgent = u"%s/%s (+%s)" % (AppName, Version, Url) +UserAgent = u"Mozilla/5.0 (compatible; %s/%s; +%s)" % (AppName, Version, Url) Freeware = AppName+u""" comes with ABSOLUTELY NO WARRANTY! This is free software, and you are welcome to redistribute it under certain conditions. Look at the file `LICENSE' within this diff --git a/dosagelib/util.py b/dosagelib/util.py index 8c3f6768d..de3e17384 100644 --- a/dosagelib/util.py +++ b/dosagelib/util.py @@ -138,7 +138,6 @@ def urlopen(url, referrer=None, retries=5): url = normaliseURL(url) req = urllib2.Request(url) if referrer: - req.add_header('Referrer', referrer) req.add_header('Referer', referrer) req.add_header('User-Agent', UserAgent)