WININET: fix proxy authentication

Mike McCormack mike at codeweavers.com
Fri Dec 3 11:06:11 CST 2004


ChangeLog:
* make sure to insert the proxy authentication header if necessary
-------------- next part --------------
Index: dlls/wininet/http.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/http.c,v
retrieving revision 1.86
diff -u -r1.86 http.c
--- dlls/wininet/http.c	23 Sep 2004 22:53:50 -0000	1.86
+++ dlls/wininet/http.c	3 Dec 2004 18:00:13 -0000
@@ -1559,6 +1559,10 @@
                         HTTP_ADDREQ_FLAG_ADD | HTTP_ADDHDR_FLAG_REPLACE);
         }
 
+        /* if there's a proxy username and password, add it to the headers */	 
+        if (hIC && (hIC->lpszProxyUsername || hIC->lpszProxyPassword ))
+            HTTP_InsertProxyAuthorization(lpwhr, hIC->lpszProxyUsername, hIC->lpszProxyPassword);
+
         /* allocate space for an array of all the string pointers to be added */
         len = (HTTP_QUERY_MAX + lpwhr->nCustHeaders)*4 + 9;
         req = HeapAlloc( GetProcessHeap(), 0, len*sizeof(LPCWSTR) );


More information about the wine-patches mailing list