HTTPS redirection loop

Description of the issue:
When a site forces an http connection (that means, the site redirects https → http), and having the automatic upgrade to https connections, then an infinite redirect loop begins.

Steps to Reproduce (add as many as necessary):
1.
Launch Brave
2. Visit http://radio.garden/ (with the Upgraded HTTPs connections shield setting enabled)

Actual Result (gifs and screenshots are welcome!):
The site never fully loads, it gets stuck in a redirect loop until the shield is manually disabled.
If you forget about it, it blocks the whole browser after a while (will not be able to load even a localhost site).
It might also be an issue if the loop silently happens over a resource (like an image) instead of the main site, but I don’t have a website to test that.

Expected R esult:
It should detect the redirection loop and stop trying to upgrade this particular connection, leaving it as http.

Reproduces how often:
Always

Brave Version(See the About Brave page in the main menu):
Brave release - v1.20.110 Chromium: 88.0.4324.192 (64 Bits)

Reproducible on current live release (yes/no):
Yes

Additional information:
Works correctly when the shield is disabled.

Hello @juani15151

let me ask @fanboynz from the team to help you

i get the same result and i just needed to disable the https connection upgrade to work

and have a nice day both of you :slight_smile:

Not sure when the updates will go out, but is fixed upstream

Checking on this request (9 days ago)