fix
This commit is contained in:
parent
1de45190fa
commit
225fe84a6b
4
main.go
4
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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user