VirtualBox

Changeset 68968 in vbox


Ignore:
Timestamp:
Oct 4, 2017 7:59:44 AM (7 years ago)
Author:
vboxsync
Message:

http-curl.cpp: Ignore ERROR_WINHTTP_UNRECOGNIZED_SCHEME error code from WinHttpGetProxyForUrl if we've got a valid http[s] URL scheme in what we pass it, because the error then is documented to mean there is something bogus with the PAC server URL.

File:
1 edited

Legend:

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

    r63451 r68968  
    17131713                    {
    17141714                        DWORD dwErr = GetLastError();
    1715                         if (dwErr == ERROR_WINHTTP_AUTODETECTION_FAILED)
     1715                        if (   dwErr == ERROR_WINHTTP_AUTODETECTION_FAILED
     1716                            || (   dwErr == ERROR_WINHTTP_UNRECOGNIZED_SCHEME
     1717                                && (   RTStrNICmp(pszUrl, RT_STR_TUPLE("https://")) == 0
     1718                                    || RTStrNICmp(pszUrl, RT_STR_TUPLE("http://")) == 0) ) )
    17161719                            rcRet = rtHttpUpdateAutomaticProxyDisable(pThis);
    17171720                        else
    1718                             AssertMsgFailed(("g_pfnWinHttpGetProxyForUrl -> %u\n", dwErr));
     1721                            AssertMsgFailed(("g_pfnWinHttpGetProxyForUrl(%s) -> %u\n", pszUrl, dwErr));
    17191722                    }
    17201723                    RTUtf16Free(pwszUrl);
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