code: func sanitizePath(r *http.Request) {
  	if r.URL.Path == "/" {
  		return
  	}
  	cleanedPath := CleanPath(r.URL.Path)
  	if cleanedPath == "." {
  		r.URL.Path = "/"
  	} else {
  		if !strings.HasPrefix(cleanedPath, "/") {
  			cleanedPath = "/" + cleanedPath
  		}
  		if strings.HasSuffix(r.URL.Path, "/") && !strings.HasSuffix(cleanedPath, "/") {
  			cleanedPath = cleanedPath + "/"
  		}
  		r.URL.Path = cleanedPath
  	}
  }
docs: // sanitizePath collapses any ./ ../ /// madness
  // which helps prevent path traversal attacks.
  // Note to middleware: use URL.RawPath If you need
  // the "original" URL.Path value.