From 026f13dea4a741272352648877cab8b0806024d4 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 13 Jan 2014 11:56:36 +0100 Subject: Feedgetter now uses the defined proxy of HTTP and HTTPS. --- pyaggr3g470r/feedgetter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index 73b48b2c..0926aa99 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -65,7 +65,8 @@ class FeedGetter(object): if conf.HTTP_PROXY == "": self.proxy = urllib2.ProxyHandler({}) else: - self.proxy = urllib2.ProxyHandler({"http" : conf.HTTP_PROXY}) + self.proxy = urllib2.ProxyHandler({"http" : conf.HTTP_PROXY, \ + "https": conf.HTTP_PROXY}) feedparser.USER_AGENT = conf.USER_AGENT self.user = models.User.objects(email=email).first() -- cgit