From 1cab27e9608639b3ea982360425ac277d453660b Mon Sep 17 00:00:00 2001 From: Daniel Lehman Date: Fri, 21 Aug 2015 14:20:54 -0700 Subject: [PATCH] wininet: Use stored server name in HTTP_ProcessCookies. --- dlls/wininet/http.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index dc5482030f3..5dd1b3b167f 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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); }