Redirect: redirect to http instead of https
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user