Skip to content

Commit

Permalink
Merge pull request #142 from prometheus/superq/web_header
Browse files Browse the repository at this point in the history
Add a Content-Type header to the landing page
  • Loading branch information
SuperQ committed Mar 24, 2023
2 parents b8280a8 + 392e735 commit 8e3c86f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/landing_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ func NewLandingPage(c LandingConfig) (*LandingPageHandler, error) {
}

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

0 comments on commit 8e3c86f

Please sign in to comment.