[issue32021] Brotli encoding is not recognized by mimetypes
Andrey
report at bugs.python.org
Tue Nov 14 09:34:03 EST 2017
Andrey <andreykl at 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 <report at bugs.python.org>
<https://bugs.python.org/issue32021>
_______________________________________
More information about the Python-bugs-list
mailing list