Andrey <andre...@google.com> added the comment: When "type, encoding = mimetypes.guess_type('file.js.br')" is used not only the "encoding" is not set to "brotli", but the type is also not recognized. Such code is used in aiohttp for example.
My proposal is to add 'br' to mimetypes.encodings_map, not to mimetypes.types_map ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32021> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com