Skip to content

Commit 392e735

Browse files
committed
Add a Content-Type header to the landing page
Set the landing page Content-Type header to HTML. Signed-off-by: SuperQ <superq@gmail.com>
1 parent 54d6390 commit 392e735

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)