Browse Source

win32: added a flag to ignore https certificate mismatches.

tags/2021-05-28
jules 13 years ago
parent
commit
a4939b87f2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_core/native/juce_win32_Network.cpp

+ 2
- 1
modules/juce_core/native/juce_win32_Network.cpp View File

@@ -295,7 +295,8 @@ private:
{
const TCHAR* mimeTypes[] = { _T("*/*"), 0 };
DWORD flags = INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_NO_COOKIES;
DWORD flags = INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_CACHE_WRITE
| INTERNET_FLAG_NO_COOKIES | INTERNET_FLAG_IGNORE_CERT_CN_INVALID;
if (address.startsWithIgnoreCase ("https:"))
flags |= INTERNET_FLAG_SECURE; // (this flag only seems necessary if the OS is running IE6 -


Loading…
Cancel
Save