Skip to content

gh-84852: Add MIME types for .eot, ,otf, .ttf, .woff and .woff2 fonts #20199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 12, 2024
4 changes: 4 additions & 0 deletions Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ def _default_mime_types():
'.webm' : 'video/webm',
'.avi' : 'video/x-msvideo',
'.movie' : 'video/x-sgi-movie',
'.woff' : 'application/font-woff',
'.woff2' : 'application/font-woff2',
'.eot' : 'application/vnd.ms-font',
'.ttf' : 'application/x-font-ttf'
}

# These are non-standard types, commonly found in the wild. They will
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing mimetypes for fonts