From 84b3234f3d85600bfe55c495ad68e7c5daad3e9e Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 21 Mar 2022 15:34:49 +0200 Subject: [PATCH] docs/CHANGELOG.md: document a1e17e91f867da133900859b14a924211d9dd223 --- app/vmagent/main.go | 1 + app/vmselect/main.go | 1 + docs/CHANGELOG.md | 1 + 3 files changed, 3 insertions(+) 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)