diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-01-13 11:56:36 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-01-13 11:56:36 +0100 |
commit | 026f13dea4a741272352648877cab8b0806024d4 (patch) | |
tree | c8151b4cc28df98d076881c97685b462a4245812 | |
parent | Uses the host address and port number specified in the configuration file. (diff) | |
download | newspipe-026f13dea4a741272352648877cab8b0806024d4.tar.gz newspipe-026f13dea4a741272352648877cab8b0806024d4.tar.bz2 newspipe-026f13dea4a741272352648877cab8b0806024d4.zip |
Feedgetter now uses the defined proxy of HTTP and HTTPS.
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |