issue-2323: Fixed Incorrect Content-Type header 'text/plain' for root path (#2343)

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2323
This commit is contained in:
Dmytro Kozlov 2022-03-21 10:13:28 +02:00 committed by GitHub
parent 82659ab5b6
commit a1e17e91f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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, "<h2>Single-node VictoriaMetrics</h2></br>")
fmt.Fprintf(w, "See docs at <a href='https://docs.victoriametrics.com/'>https://docs.victoriametrics.com/</a></br>")
fmt.Fprintf(w, "Useful endpoints:</br>")