webyesod: fix stylesheet content type

This commit is contained in:
Simon Michael 2010-07-05 19:32:15 +00:00
parent 67b04725c9
commit f3d9c44f81

View File

@ -91,9 +91,7 @@ getStyleCss :: Handler HledgerWebApp ()
getStyleCss = do getStyleCss = do
app <- getYesod app <- getYesod
let dir = appWebdir app let dir = appWebdir app
s <- liftIO $ readFile $ dir </> "style.css" sendFile "text/css" $ dir </> "style.css"
header "Content-Type" "text/css"
return $ RepPlain $ toContent s
getJournalPage :: Handler HledgerWebApp RepHtml getJournalPage :: Handler HledgerWebApp RepHtml
getJournalPage = withLatestJournalRender (const showTransactions) getJournalPage = withLatestJournalRender (const showTransactions)