Minor changes
This commit is contained in:
parent
c320d2a45b
commit
a6ab2db6a7
@ -186,7 +186,7 @@ runHandler handler mrender sroute tomr ma tosa = YesodApp $ \eh rr cts -> do
|
||||
let handleError e = do
|
||||
(_, hs, ct, c) <- unYesodApp (eh e) safeEh rr cts
|
||||
let hs' = headers ++ hs
|
||||
return $ (getStatus e, hs', ct, c)
|
||||
return (getStatus e, hs', ct, c)
|
||||
let sendFile' ct fp = do
|
||||
c <- BL.readFile fp
|
||||
return (W.Status200, headers, ct, cs c)
|
||||
|
||||
@ -74,7 +74,7 @@ getOpenIdR = do
|
||||
(x:_) -> addCookie destCookieTimeout destCookieName x
|
||||
rtom <- getRouteToMaster
|
||||
let html = template (getParams rr "message", rtom)
|
||||
applyLayout "Log in via OpenID" $ html
|
||||
applyLayout "Log in via OpenID" html
|
||||
where
|
||||
urlForward (_, wrapper) = wrapper OpenIdForward
|
||||
hasMessage = not . null . fst
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
-- FIXME document
|
||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
module Yesod.Json
|
||||
|
||||
Loading…
Reference in New Issue
Block a user