Skip to content

Commit

Permalink
Silence compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hvr committed Nov 1, 2019
1 parent 11136d3 commit 70de659
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Distribution/Server/Features/StaticFiles.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ staticFilesFeature ServerEnv{serverStaticDir, serverTemplatesMode}
cacheControlWithoutETag staticResourceCacheControls
serveDirectory DisableBrowsing [] serverStaticDir

serveStaticToplevelFile :: String -> FilePath -> ServerPartE Response
serveStaticToplevelFile mimetype filename = do
cacheControlWithoutETag staticResourceCacheControls
serveFile (asContentType mimetype) (serverStaticDir </> filename)
-- serveStaticToplevelFile :: String -> FilePath -> ServerPartE Response
-- serveStaticToplevelFile mimetype filename = do
-- cacheControlWithoutETag staticResourceCacheControls
-- serveFile (asContentType mimetype) (serverStaticDir </> filename)

serveStaticTemplate :: String -> ServerPartE Response
serveStaticTemplate = serveTemplate
Expand Down

0 comments on commit 70de659

Please sign in to comment.