[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#445985: Setting http_proxy discards proxy information altogether for https



Package: apt-transport-https
Version: 0.7.6

When http_proxy environment variable is set, all information about proxy is discarded. Both the information present in the environment variable and the information in apt.conf (Acquire::http::Proxy).

It should either honor the http_proxy over the apt.conf (see also #157759) or use the one specified in the configuration, regardless what's in the environment variable.

The issue is https only.

Included a patch to use the http_proxy whenever it's set, overriding the apt.conf value.
--- orig/apt-0.7.6/methods/https.cc	2007-07-24 15:33:30.000000000 +0300
+++ new/apt-0.7.6/methods/https.cc	2007-10-09 17:16:50.000000000 +0300
@@ -75,6 +75,10 @@
       else
 	 Proxy = DefProxy;
    }
+   else
+   {
+      Proxy = getenv("http_proxy");
+   }
    
    // Parse no_proxy, a , separated list of domains
    if (getenv("no_proxy") != 0)

Reply to: