wininet: Add current raw headers to cache.

This commit is contained in:
Piotr Caban 2013-04-30 17:00:06 +02:00 committed by Alexandre Julliard
parent 7883976722
commit 566b14479c
1 changed files with 6 additions and 3 deletions

View File

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