urlmon: Set INTERNET_ERROR_MASK_COMBINED_SEC_CERT flag for HTTP requests.
This commit is contained in:
parent
cb9cc2ccee
commit
586e8b0c61
|
@ -276,7 +276,7 @@ static HRESULT HttpProtocol_open_request(Protocol *prot, IUri *uri, DWORD reques
|
||||||
LPOLESTR accept_mimes[257];
|
LPOLESTR accept_mimes[257];
|
||||||
const WCHAR **accept_types;
|
const WCHAR **accept_types;
|
||||||
BYTE security_id[512];
|
BYTE security_id[512];
|
||||||
DWORD len, port;
|
DWORD len, port, flags;
|
||||||
ULONG num, error;
|
ULONG num, error;
|
||||||
BOOL res, b;
|
BOOL res, b;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
@ -419,10 +419,15 @@ static HRESULT HttpProtocol_open_request(Protocol *prot, IUri *uri, DWORD reques
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flags = INTERNET_ERROR_MASK_COMBINED_SEC_CERT;
|
||||||
|
res = InternetSetOptionW(This->base.request, INTERNET_OPTION_ERROR_MASK, &flags, sizeof(flags));
|
||||||
|
if(!res)
|
||||||
|
WARN("InternetSetOption(INTERNET_OPTION_ERROR_MASK) failed: %u\n", GetLastError());
|
||||||
|
|
||||||
b = TRUE;
|
b = TRUE;
|
||||||
res = InternetSetOptionW(This->base.request, INTERNET_OPTION_HTTP_DECODING, &b, sizeof(b));
|
res = InternetSetOptionW(This->base.request, INTERNET_OPTION_HTTP_DECODING, &b, sizeof(b));
|
||||||
if(!res)
|
if(!res)
|
||||||
WARN("InternetSetOption(INTERNET_OPTION_HTTP_DECODING) failed: %08x\n", GetLastError());
|
WARN("InternetSetOption(INTERNET_OPTION_HTTP_DECODING) failed: %u\n", GetLastError());
|
||||||
|
|
||||||
do {
|
do {
|
||||||
error = send_http_request(This);
|
error = send_http_request(This);
|
||||||
|
|
Loading…
Reference in New Issue