diff --git a/pkg/kubelet/server.go b/pkg/kubelet/server.go index 711fcb418edbc..1700f753afa46 100644 --- a/pkg/kubelet/server.go +++ b/pkg/kubelet/server.go @@ -655,7 +655,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { // serveStats implements stats logic. func (s *Server) serveStats(w http.ResponseWriter, req *http.Request) { - // /stats// or /stats//// + // /stats// or /stats//// components := strings.Split(strings.TrimPrefix(path.Clean(req.URL.Path), "/"), "/") var stats *cadvisorApi.ContainerInfo var err error