forked from Mirrors/wine-wine
urlmon: Set INTERNET_OPTION_HTTP_DECODING option in http protocol handler.
parent
e42d7f9591
commit
de36782c48
|
@ -85,7 +85,7 @@ static HRESULT HttpProtocol_open_request(Protocol *prot, LPCWSTR url, DWORD requ
|
|||
BYTE security_id[512];
|
||||
DWORD len = 0;
|
||||
ULONG num = 0;
|
||||
BOOL res;
|
||||
BOOL res, b;
|
||||
HRESULT hres;
|
||||
|
||||
static const WCHAR wszBindVerb[BINDVERB_CUSTOM][5] =
|
||||
|
@ -209,6 +209,11 @@ static HRESULT HttpProtocol_open_request(Protocol *prot, LPCWSTR url, DWORD requ
|
|||
optional = (LPWSTR)This->base.bind_info.stgmedData.u.hGlobal;
|
||||
}
|
||||
|
||||
b = TRUE;
|
||||
res = InternetSetOptionW(This->base.request, INTERNET_OPTION_HTTP_DECODING, &b, sizeof(b));
|
||||
if(!res)
|
||||
WARN("InternetSetOption(INTERNET_OPTION_HTTP_DECODING) failed: %08x\n", GetLastError());
|
||||
|
||||
res = HttpSendRequestW(This->base.request, This->full_header, lstrlenW(This->full_header),
|
||||
optional, optional ? This->base.bind_info.cbstgmedData : 0);
|
||||
if(!res && GetLastError() != ERROR_IO_PENDING) {
|
||||
|
|
Loading…
Reference in New Issue