wininet: Store headers in url cache entries.

This commit is contained in:
Juan Lang 2011-03-03 15:33:40 -08:00 committed by Alexandre Julliard
parent 47970d0504
commit 011b26b1c6
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}
}