Commit d6315926 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Honour INTERNET_FLAG_NO_COOKIES.

parent 3bc8d2e9
...@@ -789,7 +789,8 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(HINTERNET hHttpSession, ...@@ -789,7 +789,8 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(HINTERNET hHttpSession,
lpszUrl = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR)); lpszUrl = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
sprintfW( lpszUrl, szUrlForm, lpwhr->lpszHostName ); sprintfW( lpszUrl, szUrlForm, lpwhr->lpszHostName );
if (InternetGetCookieW(lpszUrl, NULL, NULL, &nCookieSize)) if (!(lpwhr->hdr.dwFlags & INTERNET_FLAG_NO_COOKIES) &&
InternetGetCookieW(lpszUrl, NULL, NULL, &nCookieSize))
{ {
int cnt = 0; int cnt = 0;
static const WCHAR szCookie[] = {'C','o','o','k','i','e',':',' ',0}; static const WCHAR szCookie[] = {'C','o','o','k','i','e',':',' ',0};
...@@ -1649,7 +1650,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders, ...@@ -1649,7 +1650,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
/* process headers here. Is this right? */ /* process headers here. Is this right? */
CustHeaderIndex = HTTP_GetCustomHeaderIndex(lpwhr, szSetCookie); CustHeaderIndex = HTTP_GetCustomHeaderIndex(lpwhr, szSetCookie);
if (CustHeaderIndex >= 0) if (!(lpwhr->hdr.dwFlags & INTERNET_FLAG_NO_COOKIES) && (CustHeaderIndex >= 0))
{ {
LPHTTPHEADERW setCookieHeader; LPHTTPHEADERW setCookieHeader;
int nPosStart = 0, nPosEnd = 0, len; int nPosStart = 0, nPosEnd = 0, len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment