fix(web-proxy): fix dashboard cache headers, force path lowercase in metrics

This commit is contained in:
spiral
2022-12-03 11:59:36 +00:00
parent 939a727969
commit 372eef72f4
2 changed files with 3 additions and 1 deletions

View File

@@ -40,6 +40,8 @@ func cleanPath(host, path string) string {
return ""
}
path = strings.ToLower(path)
if !(strings.HasPrefix(path, "/v2") || strings.HasPrefix(path, "/private")) {
return ""
}