fix directory listings displaying on /

This commit is contained in:
Jill 2023-01-02 12:37:06 +03:00
parent a7357c7f0d
commit ae2901e859
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ module CrystalGauntlet
server = HTTP::Server.new([
HTTP::ErrorHandler.new,
HTTP::LogHandler.new,
CrystalGauntlet::GDHandler.new,
HTTP::StaticFileHandler.new("data/", directory_listing = true)
HTTP::StaticFileHandler.new("data/", fallthrough = true, directory_listing = false),
CrystalGauntlet::GDHandler.new
])
listen_on = URI.parse(ENV["LISTEN_ON"]? || "http://localhost:8080").normalize