Juan Lang : wininet: Store headers in url cache entries.

Alexandre Julliard julliard at winehq.org
Wed Mar 9 11:12:47 CST 2011


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Mar  3 15:33:40 2011 -0800

wininet: Store headers in url cache entries.

---

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

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 2fb2a2e..a0574bf 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -1576,8 +1576,12 @@ static void HTTPREQ_Destroy(object_header_t *hdr)
         CloseHandle(request->hCacheFile);
 
         if(HTTP_GetRequestURL(request, url)) {
+            DWORD headersLen;
+
+            headersLen = request->rawHeaders ? strlenW(request->rawHeaders) : 0;
             CommitUrlCacheEntryW(url, request->cacheFile, request->expires,
-                    request->last_modified, NORMAL_CACHE_ENTRY, NULL, 0, NULL, 0);
+                    request->last_modified, NORMAL_CACHE_ENTRY,
+                    request->rawHeaders, headersLen, NULL, 0);
         }
     }
 




More information about the wine-cvs mailing list