]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
http(s): allow empty values for header fields
[apt.git] / methods / http.cc
index 1ed2e362969a57d58bd3f42a653209c245a28a97..0358b50cd25bc37e0031e30f93e82eeb1e2aaa1d 100644 (file)
@@ -357,6 +357,9 @@ bool HttpServerState::Open()
         Proxy = "";
    }
 
+   if (Proxy.empty() == false)
+      Owner->AddProxyAuth(Proxy, ServerName);
+
    if (Proxy.Access == "socks5h")
    {
       if (Connect(Proxy.Host, Proxy.Port, "socks", 1080, ServerFd, TimeOut, Owner) == false)