Compare commits

..

1 Commits

Author SHA1 Message Date
d3e32f944a fix: json content type breaks web ui 2020-05-11 21:09:12 -04:00
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)
}