mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
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:
parent
82659ab5b6
commit
a1e17e91f8
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
|
||||||
if r.Method != "GET" {
|
if r.Method != "GET" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
w.Header().Add("Content-Type", "text/html; charset=utf-8")
|
||||||
fmt.Fprintf(w, "<h2>Single-node VictoriaMetrics</h2></br>")
|
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, "See docs at <a href='https://docs.victoriametrics.com/'>https://docs.victoriametrics.com/</a></br>")
|
||||||
fmt.Fprintf(w, "Useful endpoints:</br>")
|
fmt.Fprintf(w, "Useful endpoints:</br>")
|
||||||
|
|
Loading…
Reference in a new issue