fix: json content type breaks web ui

This commit is contained in:
Vikram Rangnekar 2020-05-11 21:09:12 -04:00
parent 3bf9f02a9f
commit d3e32f944a
2 changed files with 1 additions and 1 deletions

View File

@ -52,6 +52,7 @@ func apiV1Handler() http.Handler {
func apiV1(w http.ResponseWriter, r *http.Request) {
ct := r.Context()
w.Header().Set("Content-Type", "application/json")
//nolint: errcheck
if conf.AuthFailBlock && !auth.IsAuth(ct) {

View File

@ -144,7 +144,6 @@ func routeHandler() (http.Handler, error) {
fn := func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", serverName)
w.Header().Set("Content-type", "application/json")
mux.ServeHTTP(w, r)
}