From 585fb3f49bd8f42450c324c805a6c281f4caf812 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 28 Jul 2022 21:51:02 +0200 Subject: [PATCH] lib/api: Fix inverted logic in string comparison --- lib/api/api_statics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)