[minor] fix landing page content-type (#305)
This commit is contained in:
committed by
Will Rouesnel
parent
69a90e8a33
commit
e362f444aa
@@ -1495,7 +1495,7 @@ func main() {
|
||||
|
||||
http.Handle(*metricPath, promhttp.Handler())
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "Content-Type:text/plain; charset=UTF-8") // nolint: errcheck
|
||||
w.Header().Set("Content-Type", "text/html; charset=UTF-8") // nolint: errcheck
|
||||
w.Write(landingPage) // nolint: errcheck
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user