From b61d713a0dffb1e7c54de0fdc28a4a9da52e69e5 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Wed, 17 Feb 2016 16:19:11 -0800 Subject: [PATCH] Need to explicitly set content type to text/html for Robeaux main page --- api/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/api.go b/api/api.go index fb10eab6e..d8a53b12d 100644 --- a/api/api.go +++ b/api/api.go @@ -154,6 +154,8 @@ func (a *API) robeaux(res http.ResponseWriter, req *http.Request) { res.Header().Set("Content-Type", "text/javascript; charset=utf-8") } else if t[len(t)-1] == "css" { res.Header().Set("Content-Type", "text/css; charset=utf-8") + } else if t[len(t)-1] == "html" { + res.Header().Set("Content-Type", "text/html; charset=utf-8") } res.Write(buf) }