Foundation: fix schema in approotRequest
This commit is contained in:
parent
68507c174a
commit
5685fffd86
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ import Yesod.Auth.Hardcoded
|
|||
import Yesod.Auth.Message
|
||||
import qualified Data.Text as T
|
||||
import Network.Wai as Wai
|
||||
import Network.Wai.Request (appearsSecure)
|
||||
import Data.List (tail)
|
||||
import Data.List.Split
|
||||
import Text.Printf
|
||||
|
@ -96,7 +97,7 @@ approotRequest master req =
|
|||
Nothing -> appRoot $ appSettings master
|
||||
where
|
||||
prefix =
|
||||
if isSecure req
|
||||
if appearsSecure req
|
||||
then "https://"
|
||||
else "http://"
|
||||
|
||||
|
|
Loading…
Reference in a new issue