We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04d87b6 + d0097c2 commit aad4060Copy full SHA for aad4060
main.go
@@ -345,8 +345,9 @@ func main() {
345
func startFileServer(path string, address string, l logr.Logger) {
346
l.Info("starting file server")
347
fs := http.FileServer(http.Dir(path))
348
- http.Handle("/", fs)
349
- err := http.ListenAndServe(address, nil)
+ mux := http.NewServeMux()
+ mux.Handle("/", fs)
350
+ err := http.ListenAndServe(address, mux)
351
if err != nil {
352
l.Error(err, "file server error")
353
}
0 commit comments