Jacek Caban : urlmon: Set INTERNET_OPTION_HTTP_DECODING option in http protocol handler.

Alexandre Julliard julliard at winehq.org
Fri Jun 5 08:56:52 CDT 2009


Module: wine
Branch: master
Commit: de36782c48c0b159b969d6b4b2a40b71f00603f9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=de36782c48c0b159b969d6b4b2a40b71f00603f9

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Jun  4 22:49:56 2009 +0200

urlmon: Set INTERNET_OPTION_HTTP_DECODING option in http protocol handler.

---

 dlls/urlmon/http.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c
index 272b338..928abba 100644
--- a/dlls/urlmon/http.c
+++ b/dlls/urlmon/http.c
@@ -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) {




More information about the wine-cvs mailing list