We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 590acd6 commit 52a4e8aCopy full SHA for 52a4e8a
Distribution/Server/Framework/HappstackUtils.hs
@@ -52,7 +52,11 @@ uriEscape = URI.escapeURIString URI.isAllowedInURI
52
mime :: FilePath -> String
53
mime x = Map.findWithDefault "text/plain; charset=utf-8" (drop 1 (takeExtension x)) mimeTypes'
54
where
55
- mimeTypes' = mimeTypes `Map.union` Map.fromList [("xhtml", "application/xhtml+xml")]
+ mimeTypes' = customMimeTypes `Map.union` mimeTypes
56
+ customMimeTypes = Map.fromList
57
+ [ ("xhtml", "application/xhtml+xml")
58
+ , ("cabal", "text/plain")
59
+ ]
60
61
62
0 commit comments