Skip to content

Commit cc75b40

Browse files
committed
fix: detected license file *.rst are of type text
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a384200 commit cc75b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cyclonedx_py/_internal/utils/mimetypes.py

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

2424
_MAP_EXT_MIME = {
25-
# https://www.iana.org/assignments/media-types/media-types.xhtml
25+
# https://www.iana.org/assignments/media-types/media-types.xhtml#text
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': 'application/rtf',
32+
'.rtf': 'text/rtf', # not `application/rtf` -- our scope is text!
3333
'.xml': 'text/xml', # not `application/xml` -- our scope is text!
34+
# add more mime types above this line. pull-requests welcome!
3435
# license-specific files
3536
'.license': _MIME_TEXT_PLAIN,
3637
'.licence': _MIME_TEXT_PLAIN,
37-
# add more mime types. pull-requests welcome!
3838
}
3939

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

0 commit comments

Comments
 (0)