Adjust comment

This commit is contained in:
Florian Bruhin 2025-06-05 14:06:43 +02:00
parent 5926932a6d
commit 272693ef3e
1 changed files with 2 additions and 2 deletions

View File

@ -723,8 +723,8 @@ def guess_mimetype(filename: str, fallback: bool = False) -> str:
"""
mimetype, _encoding = mimetypes.guess_type(filename)
if os.path.splitext(filename)[1] == '.mjs' and mimetype == "text/plain":
# For unknown reasons, Windows (at least on GitHub Actions) wrongly
# gives us text/plain here.
# Windows can sometimes have .mjs registered wrongly as text/plain:
# https://github.com/golang/go/issues/68591
return "text/javascript"
if mimetype is None: