Browse Source

lib/api: Fix inverted logic in string comparison

Jakob Borg 3 years ago
parent
commit
585fb3f49b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/api/api_statics.go

+ 1 - 1
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)