Skip to content

Commit a06c96e

Browse files
author
Michael Schlenker
committed
feat: Add mimetype detection for rich text format (rtf)
Signed-off-by: Michael Schlenker <[email protected]>
1 parent 6b7bbb2 commit a06c96e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cyclonedx_py/_internal/utils/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'.license': _MIME_TEXT_PLAIN,
3535
'.licence': _MIME_TEXT_PLAIN,
3636
# add more mime types. pull-requests welcome!
37+
'.rtf': 'application/rtf', # `text/rtf` could be used, but application fits better
3738
}
3839

3940
_LICENSE_FNAME_BASE = ('licence', 'license')

0 commit comments

Comments
 (0)