Adjust comment
This commit is contained in:
parent
5926932a6d
commit
272693ef3e
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue