Skip to content

Commit 24baf22

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent cc75b40 commit 24baf22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyclonedx_py/_internal/utils/mimetypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
_MIME_TEXT_PLAIN = 'text/plain'
2323

2424
_MAP_EXT_MIME = {
25-
# https://www.iana.org/assignments/media-types/media-types.xhtml#text
25+
# https://www.iana.org/assignments/media-types/media-types.xhtml
2626
'.csv': 'text/csv',
2727
'.htm': 'text/html',
2828
'.html': 'text/html',
2929
'.md': 'text/markdown',
3030
'.txt': 'text/plain',
3131
'.rst': 'text/prs.fallenstein.rst',
32-
'.rtf': 'text/rtf', # not `application/rtf` -- our scope is text!
32+
'.rtf': 'application/rtf', # our scope is text, yes, but RTF is binary - so we should base64 encode it ...
3333
'.xml': 'text/xml', # not `application/xml` -- our scope is text!
3434
# add more mime types above this line. pull-requests welcome!
3535
# license-specific files

0 commit comments

Comments
 (0)