serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Ladybird always assumes https and doesn't try http

Open adamplumb opened this issue 2 years ago • 1 comments

If i enter just a domain for a website that does not run on HTTPS, Ladybird fails to load it. Ladybird seems to assume all websites are served on HTTPS and doesn't fallback to HTTP.

To reproduce:

  1. In ladybird, enter a website that runs on HTTP only. For example: adamplumb.com
  2. Nothing happens, though the address bar now shows https://adamplumb.com/

The logs show:

ResourceLoader: Starting load of: "https://adamplumb.com/"
ResourceLoader: Failed load of: "https://adamplumb.com/", Error: Load failed: 0, Duration: 244ms``

What I would expect is that if I enter adamplumb.com it should default to HTTP and allow the server to redirect to HTTPS.

adamplumb avatar Nov 02 '23 12:11 adamplumb

HTTPS definitely should be the default (with a possible fallback to HTTP). I think on some of sites linked from adamplumb.com may want to consider using HTTPS, for example http://wiki.rabbitvcs.org/wiki/contribute?do=login, appears to send logins over plain text.

MacDue avatar Nov 06 '23 21:11 MacDue