diff --git a/hub/route/configs.go b/hub/route/configs.go index 56a9a53d6..c43d3ef97 100644 --- a/hub/route/configs.go +++ b/hub/route/configs.go @@ -373,9 +373,9 @@ func updateConfigs(w http.ResponseWriter, r *http.Request) { } else { if req.Path == "" { req.Path = C.Path.Config() - } else if !filepath.IsLocal(req.Path) { + } else if !filepath.IsAbs(req.Path) { render.Status(r, http.StatusBadRequest) - render.JSON(w, r, newError("path is not a valid absolute path")) + render.JSON(w, r, newError("path is not a absolute path")) return }