mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-09 21:22:26 +03:00
webyesod: fix stylesheet content type
This commit is contained in:
parent
67b04725c9
commit
f3d9c44f81
@ -91,9 +91,7 @@ getStyleCss :: Handler HledgerWebApp ()
|
||||
getStyleCss = do
|
||||
app <- getYesod
|
||||
let dir = appWebdir app
|
||||
s <- liftIO $ readFile $ dir </> "style.css"
|
||||
header "Content-Type" "text/css"
|
||||
return $ RepPlain $ toContent s
|
||||
sendFile "text/css" $ dir </> "style.css"
|
||||
|
||||
getJournalPage :: Handler HledgerWebApp RepHtml
|
||||
getJournalPage = withLatestJournalRender (const showTransactions)
|
||||
|
Loading…
Reference in New Issue
Block a user