Commit 566b1447 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Add current raw headers to cache.

parent 78839767
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment