Skip to content

Commit 68cbb31

Browse files
committed
Add mimetype: Add STL model/stl (.stl)
1 parent f9b0522 commit 68cbb31

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
@@ -977,6 +977,7 @@ mimetypes
977977
* Add PHP ``application/x-httpd-php`` (``.php``)
978978
* Add RAR ``application/vnd.rar`` (``.rar``)
979979
* Add RPM ``application/x-rpm`` (``.rpm``)
980+
* Add STL ``model/stl`` (``.stl``)
980981
* Add Windows Media Video ``video/x-ms-wmv`` (``.wmv``)
981982

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

Lib/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ def _default_mime_types():
619619
'.nws' : 'message/rfc822',
620620
'.gltf' : 'model/gltf+json',
621621
'.glb' : 'model/gltf-binary',
622+
'.stl' : 'model/stl',
622623
'.css' : 'text/css',
623624
'.csv' : 'text/csv',
624625
'.html' : 'text/html',

Lib/test/test_mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ def check_extensions():
275275
("message/rfc822", ".eml"),
276276
("model/gltf+json", ".gltf"),
277277
("model/gltf-binary", ".glb"),
278+
("model/stl", ".stl"),
278279
("text/html", ".html"),
279280
("text/plain", ".txt"),
280281
("text/rtf", ".rtf"),

0 commit comments

Comments
 (0)