From 96de5ff23cc05bf8e323d46ae465187c5bff7858 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Tue, 4 Jan 2022 15:44:10 -0800 Subject: [PATCH] Redirect: redirect to http instead of https --- App/Settings/Settings.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/App/Settings/Settings.swift b/App/Settings/Settings.swift index caafd13..8605b6f 100644 --- a/App/Settings/Settings.swift +++ b/App/Settings/Settings.swift @@ -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 } }