[minor] fix landing page content-type (#305)

This commit is contained in:
Leo Antunes 2019-10-30 04:57:12 +01:00 committed by Will Rouesnel
parent 69a90e8a33
commit e362f444aa

View File

@ -1495,8 +1495,8 @@ 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.Write(landingPage) // nolint: errcheck
w.Header().Set("Content-Type", "text/html; charset=UTF-8") // nolint: errcheck
w.Write(landingPage) // nolint: errcheck
})
log.Infof("Starting Server: %s", *listenAddress)