Skip to content

Commit 8e3c86f

Browse files
authored
Merge pull request #142 from prometheus/superq/web_header
Add a Content-Type header to the landing page
2 parents b8280a8 + 392e735 commit 8e3c86f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

web/landing_page.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,6 @@ func NewLandingPage(c LandingConfig) (*LandingPageHandler, error) {
7878
}
7979

8080
func (h *LandingPageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
81+
w.Header().Add("Content-Type", "text/html; charset=UTF-8")
8182
w.Write(h.landingPage)
8283
}

0 commit comments

Comments
 (0)