wine/dlls/wininet http.c

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 28 05:05:11 CST 2005


ChangeSet ID:	21482
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/11/28 05:05:11

Modified files:
	dlls/wininet   : http.c 

Log message:
	Robert Shearman <rob at codeweavers.com>
	Simplify and fix Set-Cookie handling.

Patch: http://cvs.winehq.org/patch.py?id=21482

Old revision  New revision  Changes     Path
 1.117         1.118         +2 -7       wine/dlls/wininet/http.c

Index: wine/dlls/wininet/http.c
diff -u -p wine/dlls/wininet/http.c:1.117 wine/dlls/wininet/http.c:1.118
--- wine/dlls/wininet/http.c:1.117	28 Nov 2005 11: 5:11 -0000
+++ wine/dlls/wininet/http.c	28 Nov 2005 11: 5:11 -0000
@@ -285,18 +285,13 @@ static LPWSTR HTTP_BuildHeaderRequestStr
 
 static void HTTP_ProcessHeaders( LPWININETHTTPREQW lpwhr )
 {
-    int CustHeaderIndex;
-    static const WCHAR szSetCookie[] = {'S','e','t','-','C','o','o','k','i','e',0 };
+    LPHTTPHEADERW setCookieHeader = &lpwhr->StdHeaders[HTTP_QUERY_SET_COOKIE];
 
-    CustHeaderIndex = HTTP_GetCustomHeaderIndex(lpwhr, szSetCookie);
-    if (!(lpwhr->hdr.dwFlags & INTERNET_FLAG_NO_COOKIES) && (CustHeaderIndex >= 0))
+    if (!(lpwhr->hdr.dwFlags & INTERNET_FLAG_NO_COOKIES) && setCookieHeader->lpszValue)
     {
-        LPHTTPHEADERW setCookieHeader;
         int nPosStart = 0, nPosEnd = 0, len;
         static const WCHAR szFmt[] = { 'h','t','t','p',':','/','/','%','s','/',0};
 
-        setCookieHeader = &lpwhr->pCustHeaders[CustHeaderIndex];
-
         while (setCookieHeader->lpszValue[nPosEnd] != '\0')
         {
             LPWSTR buf_cookie, cookie_name, cookie_data;



More information about the wine-cvs mailing list