diff --git a/servant-server.cabal b/servant-server.cabal index fdc59103..7da021e7 100644 --- a/servant-server.cabal +++ b/servant-server.cabal @@ -49,7 +49,7 @@ library , text , transformers , wai - , wai-app-static + , wai-app-static >= 3.0.0.6 , warp hs-source-dirs: src default-language: Haskell2010 diff --git a/test/Servant/Utils/StaticFilesSpec.hs b/test/Servant/Utils/StaticFilesSpec.hs index de7b9e3c..6918448f 100644 --- a/test/Servant/Utils/StaticFilesSpec.hs +++ b/test/Servant/Utils/StaticFilesSpec.hs @@ -61,4 +61,4 @@ spec = do get "/static/foo.txt" `shouldRespondWith` "bar" it "serves the contents of index.html when requesting the root of a directory" $ do - get "/static" `shouldRespondWith` "index" + get "/static/" `shouldRespondWith` "index"