diff options
| author | Julian Andres Klode <jak@debian.org> | 2021-10-18 13:37:09 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2021-10-18 13:37:09 +0000 |
| commit | 76bd0ab589f5a577bd6127bf6487fd351de5b32a (patch) | |
| tree | a1d191fcb07118428a09e92bd29827e3af622bf6 /methods/http.cc | |
| parent | f6b08c78dcdda1734710a5ef01553f53ceb5c52e (diff) | |
| parent | 4e04cbafe7db326b52ee650a4f4ccc3444da6890 (diff) | |
Merge branch 'fix/file-https-proxy' into 'main'
Fix file:/// vs file:/ hang & https-proxy for http
See merge request apt-team/apt!187
Diffstat (limited to 'methods/http.cc')
| -rw-r--r-- | methods/http.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/methods/http.cc b/methods/http.cc index b6d754037..2a5ab2cd2 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -518,7 +518,9 @@ ResultState HttpServerState::Open() return result; if (Host == Proxy.Host && Proxy.Access == "https") { - result = UnwrapTLS(Proxy.Host, ServerFd, TimeOut, Owner); + aptConfigWrapperForMethods ProxyConf{std::vector<std::string>{"http", "https"}}; + ProxyConf.setPostfixForMethodNames(Proxy.Host.c_str()); + result = UnwrapTLS(Proxy.Host, ServerFd, TimeOut, Owner, &ProxyConf); if (result != ResultState::SUCCESSFUL) return result; } @@ -531,7 +533,7 @@ ResultState HttpServerState::Open() } if (tls) - return UnwrapTLS(ServerName.Host, ServerFd, TimeOut, Owner); + return UnwrapTLS(ServerName.Host, ServerFd, TimeOut, Owner, Owner); return ResultState::SUCCESSFUL; } |
