lib/api: Fix inverted logic in string comparison

This commit is contained in:
Jakob Borg 2022-07-28 21:51:02 +02:00
parent 8e3f1190d1
commit 585fb3f49b
1 changed files with 1 additions and 1 deletions

View File

@ -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)