wininet: Set secure flag when scheme is https.

This commit is contained in:
Hans Leidekker 2008-12-08 12:35:32 +01:00 committed by Alexandre Julliard
parent d8dad22c97
commit 15b046304c
1 changed files with 2 additions and 0 deletions

View File

@ -2844,6 +2844,8 @@ static HINTERNET INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
else
urlComponents.nPort = INTERNET_DEFAULT_HTTPS_PORT;
}
if (urlComponents.nScheme == INTERNET_SCHEME_HTTPS) dwFlags |= INTERNET_FLAG_SECURE;
/* FIXME: should use pointers, not handles, as handles are not thread-safe */
client = HTTP_Connect(hIC, hostName, urlComponents.nPort,
userName, password, dwFlags, dwContext, INET_OPENURL);