]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/StaticFile.hs
Yet Another Huge Changes
[Lucu.git] / Network / HTTP / Lucu / StaticFile.hs
index 82bc59b84db9706a688e1b69ab215a7bdfee1d51..d79fc4fff4f6b6ff70959e7df497087a37289014 100644 (file)
@@ -56,11 +56,13 @@ handleStaticFile sendContent path
 
          readable ← liftIO $ fileAccess path True False False
          unless readable
-             $ abort Forbidden [] Nothing
+             $ abort
+             $ mkAbortion Forbidden [] Nothing
 
          stat ← liftIO $ getFileStatus path
          when (isDirectory stat)
-             $ abort Forbidden [] Nothing
+             $ abort
+             $ mkAbortion Forbidden [] Nothing
 
          tag  ← liftIO $ generateETagFromFile path
          let lastMod = posixSecondsToUTCTime