]> granicus.if.org Git - python/commitdiff
[2.7] bpo-30824: Add mimetype for .json (GH-3048) (#3394)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 Sep 2017 22:31:36 +0000 (15:31 -0700)
committerR. David Murray <rdmurray@bitdance.com>
Wed, 6 Sep 2017 22:31:36 +0000 (18:31 -0400)
(cherry picked from commit 8204b903683f9e0f037ccfaa87622716019914d7)

Lib/mimetypes.py

index 157d455521d1874e251e5f445599ba26afb23cbb..caecc11c37cb4c0c05437b867e167ecacf663e4e 100644 (file)
@@ -442,6 +442,7 @@ def _default_mime_types():
         '.jpeg'   : 'image/jpeg',
         '.jpg'    : 'image/jpeg',
         '.js'     : 'application/javascript',
+        '.json'   : 'application/json',
         '.ksh'    : 'text/plain',
         '.latex'  : 'application/x-latex',
         '.m1v'    : 'video/mpeg',