Skip to content

Commit 90c035d

Browse files
committed
Add mimetype: Windows Media Video video/x-ms-wmv (.wmv)
1 parent 11528bf commit 90c035d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ mimetypes
974974
* Add PHP ``application/x-httpd-php`` (``.php``)
975975
* Add RAR ``application/vnd.rar`` (``.rar``)
976976
* Add RPM ``application/x-rpm`` (``.rpm``)
977+
* Add Windows Media Video ``video/x-ms-wmv`` (``.wmv``)
977978

978979
(Contributed by Hugo van Kemenade in :gh:`129965`.)
979980

Lib/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ def _default_mime_types():
655655
'.webm' : 'video/webm',
656656
'.avi' : 'video/vnd.avi',
657657
'.m4v' : 'video/x-m4v',
658+
'.wmv' : 'video/x-ms-wmv',
658659
'.movie' : 'video/x-sgi-movie',
659660
}
660661

Lib/test/test_mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ def check_extensions():
283283
("video/quicktime", ".mov"),
284284
("video/vnd.avi", ".avi"),
285285
("video/x-m4v", ".m4v"),
286+
("video/x-ms-wmv", ".wmv"),
286287
):
287288
with self.subTest(mime_type=mime_type, ext=ext):
288289
self.assertEqual(mimetypes.guess_extension(mime_type), ext)

0 commit comments

Comments
 (0)