diff options
-rw-r--r-- | src/dutil/dlutil.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dutil/dlutil.cpp b/src/dutil/dlutil.cpp index 81455df0..1b30f410 100644 --- a/src/dutil/dlutil.cpp +++ b/src/dutil/dlutil.cpp | |||
@@ -558,7 +558,11 @@ static HRESULT OpenRequest( | |||
558 | { | 558 | { |
559 | dwRequestFlags |= INTERNET_FLAG_SECURE; | 559 | dwRequestFlags |= INTERNET_FLAG_SECURE; |
560 | } | 560 | } |
561 | 561 | else if (INTERNET_SCHEME_HTTP == scheme) | |
562 | { | ||
563 | dwRequestFlags |= INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS; | ||
564 | } | ||
565 | |||
562 | // Allocate the resource name. | 566 | // Allocate the resource name. |
563 | hr = StrAllocString(&sczResource, wzResource, 0); | 567 | hr = StrAllocString(&sczResource, wzResource, 0); |
564 | ExitOnFailure(hr, "Failed to allocate string for resource URI."); | 568 | ExitOnFailure(hr, "Failed to allocate string for resource URI."); |