From a1e17e91f867da133900859b14a924211d9dd223 Mon Sep 17 00:00:00 2001 From: Dmytro Kozlov Date: Mon, 21 Mar 2022 10:13:28 +0200 Subject: [PATCH] issue-2323: Fixed Incorrect Content-Type header 'text/plain' for root path (#2343) https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2323 --- app/victoria-metrics/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/victoria-metrics/main.go b/app/victoria-metrics/main.go index 8511f1f5d7..6cdd4d957c 100644 --- a/app/victoria-metrics/main.go +++ b/app/victoria-metrics/main.go @@ -86,6 +86,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, "

Single-node VictoriaMetrics


") fmt.Fprintf(w, "See docs at https://docs.victoriametrics.com/
") fmt.Fprintf(w, "Useful endpoints:
")