set scheme prefix dependent on approot, not incoming connection.
This commit is contained in:
parent
bc63a44883
commit
325045cfec
1 changed files with 2 additions and 2 deletions
|
@ -124,9 +124,9 @@ approotRequest master req =
|
|||
Nothing -> appRoot $ appSettings master
|
||||
where
|
||||
prefix =
|
||||
case isSecure req of
|
||||
case "https://" `T.isPrefixOf` (appRoot $ appSettings master) of
|
||||
True -> "https://"
|
||||
False -> (fst $ breakOn ":" $ appRoot $ appSettings master) `T.append` "://"
|
||||
False -> "http://"
|
||||
|
||||
-- Please see the documentation for the Yesod typeclass. There are a number
|
||||
-- of settings which can be configured by overriding methods here.
|
||||
|
|
Loading…
Reference in a new issue