caddyhttp: New algorithm for auto HTTP->HTTPS redirects (fix #3127) (#3128)
caddyhttp: New algorithm for auto HTTP->HTTPS redirects (fix #3127) (#3128)

It's still not perfect but I think it should be more correct for
slightly more complex configs. Might still fall apart for complex
configs that use on-demand TLS or at a large scale (workarounds are
to just implement your own redirects, very easy to do anyway).
mholt/caddy,l3dlp/caddy,l3dlp/caddy,mholt/caddy,abiosoft/caddy,l3dlp/caddy,abiosoft/caddy