diff --git a/cmd/dkl-local-server/http.go b/cmd/dkl-local-server/http.go index 1b8f360..530eb36 100644 --- a/cmd/dkl-local-server/http.go +++ b/cmd/dkl-local-server/http.go @@ -7,7 +7,6 @@ import ( "log" "net" "net/http" - "path" "regexp" "strings" @@ -45,7 +44,7 @@ func serveHostByIP(w http.ResponseWriter, r *http.Request) { return } - what := path.Base(r.URL.Path) + what := strings.TrimLeft(r.URL.Path, "/") renderHost(w, r, what, host, cfg) }