mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 23:28:39 +03:00
httpd: disable directory index for static files
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -23,6 +23,6 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
)
|
||||
|
||||
func serveStaticDir(router chi.Router, path, fsDirPath string) {
|
||||
fileServer(router, path, http.Dir(fsDirPath))
|
||||
func serveStaticDir(router chi.Router, path, fsDirPath string, disableDirectoryIndex bool) {
|
||||
fileServer(router, path, http.Dir(fsDirPath), disableDirectoryIndex)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user