Skip to content

Commit

Permalink
Pick a suitable HTTP proxy authentication method (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
edocevoli committed May 7, 2020
1 parent 133c6f6 commit 7f1c1d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Libraries/MiKTeX/PackageManager/CurlWebSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ void CurlWebSession::Initialize()

SetOption(CURLOPT_NOSIGNAL, static_cast<long>(true));

SetOption(CURLOPT_PROXYAUTH, CURLAUTH_ANY);

ProxySettings proxySettings;

bool haveProxySettings = PackageManager::TryGetProxy(proxySettings);
Expand All @@ -191,7 +193,6 @@ void CurlWebSession::Initialize()
proxyPort += ":";
proxyPort += std::to_string(proxySettings.port);
SetOption(CURLOPT_PROXY, proxyPort.c_str());
SetOption(CURLOPT_PROXYAUTH, CURLAUTH_ANY);
if (proxySettings.authenticationRequired)
{
if (proxySettings.user.find(':') != string::npos)
Expand Down
2 changes: 1 addition & 1 deletion Libraries/MiKTeX/PackageManager/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
## Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
## USA.

set(MIKTEX_COMP_J2000_VERSION 7432)
set(MIKTEX_COMP_J2000_VERSION 7433)
set(MIKTEX_COMP_INTERFACE_VERSION 9)

0 comments on commit 7f1c1d1

Please sign in to comment.