jchoover: WIXBUG:6071 - Enable HTTP to HTTPS redirects for burn downloads.
Jacob Hoover committed
Aug 29, 2019 at 12:13 UTC
a4d49f0a2a8b59ae4fdfa02081c522bc0d02d21a
1 file changed
+5
-1
src/dutil/dlutil.cpp
+5
-1
@@ -558,7 +558,11 @@ static HRESULT OpenRequest(
558
{
559
dwRequestFlags |= INTERNET_FLAG_SECURE;
560
}
561
-
561
+ else if (INTERNET_SCHEME_HTTP == scheme)
562
+ {
563
+ dwRequestFlags |= INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS;
564
+ }
565
+
566
// Allocate the resource name.
567
hr = StrAllocString(&sczResource, wzResource, 0);
568
ExitOnFailure(hr, "Failed to allocate string for resource URI.");