We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20d6f5b commit a205cf8Copy full SHA for a205cf8
cyclonedx_py/_internal/utils/mimetypes.py
@@ -52,6 +52,8 @@ def guess_type(file_name: str) -> Optional[str]:
52
"""
53
file_name_l = file_name.lower()
54
base, ext = splitext(file_name_l)
55
+ if ext == '':
56
+ return None
57
if base in _LICENSE_FNAME_BASE and ext in _LICENSE_FNAME_EXT:
58
return _MIME_TEXT_PLAIN
59
return _MAP_EXT_MIME.get(ext) \
0 commit comments