mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-23 23:45:28 +00:00
[minor] fix landing page content-type (#305)
This commit is contained in:
parent
69a90e8a33
commit
e362f444aa
@ -1495,8 +1495,8 @@ func main() {
|
|||||||
|
|
||||||
http.Handle(*metricPath, promhttp.Handler())
|
http.Handle(*metricPath, promhttp.Handler())
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
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
|
w.Write(landingPage) // nolint: errcheck
|
||||||
})
|
})
|
||||||
|
|
||||||
log.Infof("Starting Server: %s", *listenAddress)
|
log.Infof("Starting Server: %s", *listenAddress)
|
||||||
|
Loading…
Reference in New Issue
Block a user