rif/spark

Add Safe directory flag option

sideffect0 opened this issue · 0 comments

The default fileserver has no option to exclude sensitive dotfiles or directories, one option is to implement a custom filesystem considering the case

spark/spark.go

Line 41 in 8b891be

handler = http.StripPrefix(*path, http.FileServer(http.Dir(body)))