minor submission cleanup (correct charset)

This commit is contained in:
Gregor Kleen 2018-06-30 21:30:21 +02:00
parent 9e1111f654
commit 9a1644f68e

View File

@ -302,7 +302,7 @@ getSubmissionDownloadSingleR tid csh shn cID path = do
let fileName = Text.pack $ takeFileName path
case results of
[Entity _ File{ fileContent = Just c }] -> return $ TypedContent (defaultMimeLookup fileName) (toContent c)
[Entity _ File{ fileContent = Just c }] -> return $ TypedContent (defaultMimeLookup fileName <> "; charset=utf-8") (toContent c)
_ -> notFound
getSubmissionDownloadArchiveR :: TermId -> Text -> Text -> ZIPArchiveName SubmissionId -> Handler TypedContent