From 989aad73caef7388a673f7e674487f6fc3103dbe Mon Sep 17 00:00:00 2001 From: boojack Date: Sun, 20 Sep 2026 21:19:48 +0800 Subject: [PATCH] test: use an unregistered extension in MIME sniffing test (#6353) --- server/api/v1/attachment_mime_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/v1/attachment_mime_test.go b/server/api/v1/attachment_mime_test.go index 58a5abfc4..2a93ff1af 100644 --- a/server/api/v1/attachment_mime_test.go +++ b/server/api/v1/attachment_mime_test.go @@ -35,7 +35,7 @@ func TestDetectAttachmentMimeType(t *testing.T) { }, { name: "unknown extension falls back to content sniffing", - filename: "photo.xyz", + filename: "photo.memosunknown", content: []byte{0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a}, want: "image/png", },