Commits

Vladimir Kolev committed b2d12d0

System proxy is by default in uppercase when set in the environment with export HTTP_PROXY

  • Participants
  • Parent commits 54e474b

Comments (0)

Files changed (1)

File lib/enviroment.py

             self._proxy = None
 
     def get_system_proxy(self):
-        if os.environ.has_key("http_proxy") and os.environ["http_proxy"] != "":
+        if os.environ.has_key("HTTP_PROXY") and os.environ["HTTP_PROXY"] != "":
             proxy_url = "http://" + os.environ["http_proxy"]
         else:
             proxy_factory = libproxy.ProxyFactory()