packages feed

warp-static 1.1.0 → 1.1.0.1

raw patch · 2 files changed

+4/−2 lines, 2 filesdep ~wai-app-static

Dependency ranges changed: wai-app-static

Files

warp-static.cabal view
@@ -1,5 +1,5 @@ Name:                warp-static-Version:             1.1.0+Version:             1.1.0.1 Synopsis:            Static file server based on Warp and wai-app-static Homepage:            http://github.com/yesodweb/wai License:             BSD3@@ -16,7 +16,7 @@   Main-is:       warp.hs   Build-depends: base            >= 4                  && < 5                , warp            >= 1.1                && < 1.2-               , wai-app-static  >= 1.1                && < 1.2+               , wai-app-static  >= 1.1.2              && < 1.2                , wai-extra       >= 1.1                && < 1.2                , cmdargs         >= 0.6.7                , directory       >= 1.0
warp.hs view
@@ -4,6 +4,7 @@     , defaultMimeTypes, mimeTypeByExt     , defaultFileServerSettings, fileSystemLookup     , fileName, toFilePath+    , ssRedirectToIndex     ) import Network.Wai.Handler.Warp     ( runSettings, defaultSettings, settingsHost, settingsPort@@ -52,6 +53,7 @@         } $ middle $ staticApp defaultFileServerSettings         { ssFolder = fileSystemLookup $ toFilePath docroot         , ssIndices = if noindex then [] else map pack index+        , ssRedirectToIndex = False         , ssListing = Just defaultListing         , ssGetMimeType = return . mimeTypeByExt mimeMap defaultMimeType . fileName         }