Audit required: Exposure of directory listing using net/http.FileServer GO-S1034
Security
Major
a year agoa year old
Exposure of directory listing using net/http.FileServer
392}
393
394func serveStatic(urlPrefix, staticDir string) http.Handler {
395	return http.StripPrefix(urlPrefix, http.FileServer(http.Dir(staticDir)))396}
397
398func sendError(err error, resp http.ResponseWriter, status ...int) {