Redirect: redirect to http instead of https

This commit is contained in:
James Magahern
2022-01-04 15:44:10 -08:00
parent a13aab99b2
commit 96de5ff23c

View File

@@ -88,6 +88,11 @@ class Settings
if let alternateHost = redirectRules[host] {
components.host = alternateHost
// Since redirected hosts are usually self-hosted.
// If https is required, it will be upgraded anyway.
components.scheme = "http"
return components.url
}
}