diff --git a/app/vmagent/main.go b/app/vmagent/main.go
index 6190d9ed9b..384de4c116 100644
--- a/app/vmagent/main.go
+++ b/app/vmagent/main.go
@@ -154,6 +154,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
if r.Method != "GET" {
return false
}
+ w.Header().Add("Content-Type", "text/html; charset=utf-8")
fmt.Fprintf(w, "
vmagent
")
fmt.Fprintf(w, "See docs at https://docs.victoriametrics.com/vmagent.html")
fmt.Fprintf(w, "Useful endpoints:")
diff --git a/app/vmselect/main.go b/app/vmselect/main.go
index 79d86cc0b8..566fc9da41 100644
--- a/app/vmselect/main.go
+++ b/app/vmselect/main.go
@@ -243,6 +243,7 @@ func selectHandler(startTime time.Time, w http.ResponseWriter, r *http.Request,
if r.Method != "GET" {
return false
}
+ w.Header().Add("Content-Type", "text/html; charset=utf-8")
fmt.Fprintf(w, "VictoriaMetrics cluster - vmselect
")
fmt.Fprintf(w, "See docs")
fmt.Fprintf(w, "Useful endpoints:")
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 125c85613b..3499d2b3ec 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -14,6 +14,7 @@ The following tip changes can be tested by building VictoriaMetrics components f
## tip
+* BUGFIX: return `Content-Type: text/html` response header when requesting `/` HTTP path at VictoriaMetrics components. Previously `text/plain` response header was returned, which could lead to broken page formatting. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2323).
## [v1.75.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.75.0)