Code

Add support for variable root mount points.
[sysdb/webui.git] / server / error.go
index 270225a32473392bb4c1a932423a4c3ade058c6c..8509b3d3f131b78084ae38f9f22ee485f10e5fd8 100644 (file)
@@ -36,7 +36,7 @@ import (
 )
 
 func (s *Server) notfound(w http.ResponseWriter, r *http.Request) {
-       s.err(w, http.StatusNotFound, fmt.Errorf("%s not found", r.RequestURI))
+       s.err(w, http.StatusNotFound, fmt.Errorf("%s not found", r.URL.Path))
 }
 
 func (s *Server) badrequest(w http.ResponseWriter, err error) {