From 15b046304cfce39180435631adbdb19266cd9049 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 8 Dec 2008 12:35:32 +0100 Subject: [PATCH] wininet: Set secure flag when scheme is https. --- dlls/wininet/internet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index ed92536c20..855ae4d5c8 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -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); -- 2.33.8