diff --git a/main.go b/main.go index dfc1150..a9a3958 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ var ( func main() { flag.Parse() - fileServer = http.FileServer(http.Dir(*directory)) + fileServer = http.FileServer(http.Dir("")) http.HandleFunc("/", handler) dockerhealth.Healthy = true @@ -95,7 +95,6 @@ func get(w http.ResponseWriter, r *http.Request) { } r.URL.Path = path - fmt.Println(r.URL.Path) fileServer.ServeHTTP(w, r) } @@ -145,6 +144,7 @@ func head(w http.ResponseWriter, r *http.Request) { w.Header().Add("Group-Owner", groupname) } + r.URL.Path = path fileServer.ServeHTTP(w, r) }