Skip to content

Commit 52a778f

Browse files
committed
fix(mimetypes): add toml mimetype
1 parent f15c547 commit 52a778f

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
@@ -500,6 +500,7 @@ def _default_mime_types():
500500
'.ps' : 'application/postscript',
501501
'.ai' : 'application/postscript',
502502
'.eps' : 'application/postscript',
503+
'.toml' : 'application/toml',
503504
'.trig' : 'application/trig',
504505
'.m3u' : 'application/vnd.apple.mpegurl',
505506
'.m3u8' : 'application/vnd.apple.mpegurl',

Lib/test/test_mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ def check_extensions():
230230
("application/gzip", ".gz"),
231231
("application/ogg", ".ogx"),
232232
("application/postscript", ".ps"),
233+
("application/toml", ".toml"),
233234
("application/vnd.apple.mpegurl", ".m3u"),
234235
("application/vnd.ms-excel", ".xls"),
235236
("application/vnd.ms-fontobject", ".eot"),

0 commit comments

Comments
 (0)