wininet: Use stored server name in HTTP_ProcessCookies.
This commit is contained in:
parent
4a1e6227ed
commit
1cab27e960
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue