Exposing toWaiAppPlain
This commit is contained in:
parent
0c946de756
commit
3a5969b8e8
@ -225,7 +225,7 @@ simpleContentType :: String -> String
|
|||||||
simpleContentType = fst . span (/= ';')
|
simpleContentType = fst . span (/= ';')
|
||||||
|
|
||||||
-- | A default extension to mime-type dictionary.
|
-- | A default extension to mime-type dictionary.
|
||||||
typeByExt :: [(String, ContentType)]
|
typeByExt :: [(String, ContentType)] -- FIXME move to yesod-static
|
||||||
typeByExt =
|
typeByExt =
|
||||||
[ ("jpg", typeJpeg)
|
[ ("jpg", typeJpeg)
|
||||||
, ("jpeg", typeJpeg)
|
, ("jpeg", typeJpeg)
|
||||||
|
|||||||
@ -19,6 +19,7 @@ module Yesod.Dispatch
|
|||||||
, Strings
|
, Strings
|
||||||
-- * Convert to WAI
|
-- * Convert to WAI
|
||||||
, toWaiApp
|
, toWaiApp
|
||||||
|
, toWaiAppPlain
|
||||||
#if TEST
|
#if TEST
|
||||||
, dispatchTestSuite
|
, dispatchTestSuite
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user