Accept everything instead of nothing in wxWebRequestWinHTTP
This is consistent with the other implementations and generally makes more sense.
This commit is contained in:
@@ -311,13 +311,14 @@ void wxWebRequestWinHTTP::Start()
|
|||||||
objectName += "?" + wxString(urlComps.lpszExtraInfo, urlComps.dwExtraInfoLength);
|
objectName += "?" + wxString(urlComps.lpszExtraInfo, urlComps.dwExtraInfoLength);
|
||||||
|
|
||||||
// Open a request
|
// Open a request
|
||||||
|
static const wchar_t* acceptedTypes[] = { L"*/*", NULL };
|
||||||
m_request = ::WinHttpOpenRequest
|
m_request = ::WinHttpOpenRequest
|
||||||
(
|
(
|
||||||
m_connect,
|
m_connect,
|
||||||
method.wc_str(), objectName.wc_str(),
|
method.wc_str(), objectName.wc_str(),
|
||||||
NULL, // protocol version: use default, i.e. HTTP/1.1
|
NULL, // protocol version: use default, i.e. HTTP/1.1
|
||||||
WINHTTP_NO_REFERER,
|
WINHTTP_NO_REFERER,
|
||||||
WINHTTP_DEFAULT_ACCEPT_TYPES,
|
acceptedTypes,
|
||||||
urlComps.nScheme == INTERNET_SCHEME_HTTPS
|
urlComps.nScheme == INTERNET_SCHEME_HTTPS
|
||||||
? WINHTTP_FLAG_SECURE
|
? WINHTTP_FLAG_SECURE
|
||||||
: 0
|
: 0
|
||||||
|
Reference in New Issue
Block a user