Skip to content

Commit 168f81d

Browse files
authored
docs: license file *.rst are NOT type text - they are binary (#911)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a384200 commit 168f81d

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
@@ -29,12 +29,12 @@
2929
'.md': 'text/markdown',
3030
'.txt': 'text/plain',
3131
'.rst': 'text/prs.fallenstein.rst',
32-
'.rtf': 'application/rtf',
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!
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)