Skip to content

Commit b2b4a51

Browse files
philmcmahonmaxking
authored andcommitted
bpo-32021: Support brotli .br encoding in mimetypes (#12200)
Add support for brotli encoding in the encoding_map.
1 parent 61b1415 commit b2b4a51

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def _default_mime_types():
401401
'.Z': 'compress',
402402
'.bz2': 'bzip2',
403403
'.xz': 'xz',
404+
'.br': 'br',
404405
}
405406

406407
# Before adding new types, make sure they are either registered with IANA,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Include brotli .br encoding in mimetypes encodings_map

0 commit comments

Comments
 (0)