From c2f2e4c11a3b218483728fd34e4258bda7999f7d Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Sat, 16 Nov 2024 09:02:26 -0500 Subject: [PATCH] Add mimetype as a backup --- internal/config/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/server.go b/internal/config/server.go index 4492aea..0cdb4c9 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -376,7 +376,7 @@ func MimeToPandoc(mimeType string) (string, error) { pandoc, ok := mapping[mimeType] if !ok { - return "", fmt.Errorf("unknown mime extension: %s", mimeType) + return GetMimeTypeExtension(mimeType) } return pandoc, nil }