wininet: Use stored server name in HTTP_ProcessCookies.

This commit is contained in:
Daniel Lehman 2015-08-21 14:20:54 -07:00 committed by Alexandre Julliard
parent 4a1e6227ed
commit 1cab27e960
1 changed files with 1 additions and 6 deletions

View File

@ -771,7 +771,6 @@ static void HTTP_ProcessCookies( http_request_t *request )
while((HeaderIndex = HTTP_GetCustomHeaderIndex(request, szSet_Cookie, numCookies++, FALSE)) != -1)
{
HTTPHEADERW *host;
const WCHAR *data;
WCHAR *name;
@ -780,10 +779,6 @@ static void HTTP_ProcessCookies( http_request_t *request )
if (!setCookieHeader->lpszValue)
continue;
host = HTTP_GetHeader(request, hostW);
if(!host)
continue;
data = strchrW(setCookieHeader->lpszValue, '=');
if(!data)
continue;
@ -793,7 +788,7 @@ static void HTTP_ProcessCookies( http_request_t *request )
continue;
data++;
set_cookie(host->lpszValue, request->path, name, data, INTERNET_COOKIE_HTTPONLY);
set_cookie(request->server->name, request->path, name, data, INTERNET_COOKIE_HTTPONLY);
heap_free(name);
}