lib/api: Fix inverted logic in string comparison

This commit is contained in:
Jakob Borg
2022-07-28 21:51:14 +02:00
parent 8e3f1190d1
commit 585fb3f49b
+1 -1
View File
@@ -136,7 +136,7 @@ func (s *staticsServer) serveFromAssetDir(file, theme string, w http.ResponseWri
return false return false
} }
mtype := assets.MimeTypeForFile(file) mtype := assets.MimeTypeForFile(file)
if mtype == "" { if mtype != "" {
w.Header().Set("Content-Type", mtype) w.Header().Set("Content-Type", mtype)
} }
http.ServeFile(w, r, p) http.ServeFile(w, r, p)