diff --git a/lib/api/api_statics.go b/lib/api/api_statics.go index b63908dde..89b1c4c5a 100644 --- a/lib/api/api_statics.go +++ b/lib/api/api_statics.go @@ -136,7 +136,7 @@ func (s *staticsServer) serveFromAssetDir(file, theme string, w http.ResponseWri return false } mtype := assets.MimeTypeForFile(file) - if mtype == "" { + if mtype != "" { w.Header().Set("Content-Type", mtype) } http.ServeFile(w, r, p)