Skip to content

Commit

Permalink
Add mimetype as a backup
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Nov 16, 2024
1 parent bc49618 commit c2f2e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit c2f2e4c

Please sign in to comment.