VirtualBox

Changeset 70141 in vbox for trunk


Ignore:
Timestamp:
Dec 15, 2017 12:25:49 PM (7 years ago)
Author:
vboxsync
Message:

http-curl.cpp: rtHttpWinConfigureProxyForUrl - also assume no proxy if
we get ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT. This avoid assertion
in the debug build.

That error is what I get on my home network without automatic proxy,
not ERROR_WINHTTP_AUTODETECTION_FAILED. The latter is not listed as a
possible error for WinHttpGetProxyForUrl function(), but for
WinHttpDetectAutoProxyConfigUrl().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r69111 r70141  
    17141714                        DWORD dwErr = GetLastError();
    17151715                        if (   dwErr == ERROR_WINHTTP_AUTODETECTION_FAILED
     1716                            || dwErr == ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT
    17161717                            || (   dwErr == ERROR_WINHTTP_UNRECOGNIZED_SCHEME
    17171718                                && (   RTStrNICmp(pszUrl, RT_STR_TUPLE("https://")) == 0
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette