From fd205fb8fed13e9117dd8798dc214d138b9dc94c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Fri, 29 May 2026 22:29:23 +0200 Subject: [PATCH] Fix mime type detection --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 985ee70..b686d13 100644 --- a/main.go +++ b/main.go @@ -307,7 +307,7 @@ func getProtocol(r *http.Request) string { func detectContentType(filename string) string { ext := filepath.Ext(filename) mimeType := mime.TypeByExtension(ext) - if mimeType == "" { + if mimeType != "" { return mimeType } return "application/octet-stream"