diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py index 08acfa727..37a72c07b 100644 --- a/qutebrowser/utils/utils.py +++ b/qutebrowser/utils/utils.py @@ -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: