From: Mike McCormack Date: Mon, 6 Dec 2004 11:40:57 +0000 (+0000) Subject: Make sure to insert the proxy authentication header if necessary. X-Git-Tag: wine-20050111~478 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=c72d956b90c67a6aa399ff549802fcc8e09df5e5;p=wine%2Feterwine.git Make sure to insert the proxy authentication header if necessary. --- diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index f34670f893..c69beed7f4 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1559,6 +1559,10 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders, 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) );