Piotr Caban : wininet: Add current raw headers to cache.

Alexandre Julliard julliard at winehq.org
Tue Apr 30 12:51:28 CDT 2013


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Apr 30 17:00:06 2013 +0200

wininet: Add current raw headers to cache.

---

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

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 281fe66..aaf1c86 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -2276,12 +2276,15 @@ static void commit_cache_entry(http_request_t *req)
     req->hCacheFile = NULL;
 
     if(HTTP_GetRequestURL(req, url)) {
-        DWORD headersLen;
+        WCHAR *header;
+        DWORD header_len;
 
-        headersLen = req->rawHeaders ? strlenW(req->rawHeaders) : 0;
+        header = build_response_header(req, TRUE);
+        header_len = (header ? strlenW(header) : 0);
         CommitUrlCacheEntryW(url, req->cacheFile, req->expires,
                 req->last_modified, NORMAL_CACHE_ENTRY,
-                req->rawHeaders, headersLen, NULL, 0);
+                header, header_len, NULL, 0);
+        heap_free(header);
     }
 }
 




More information about the wine-cvs mailing list