]> granicus.if.org Git - python/commitdiff
[3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Sep 2017 00:04:14 +0000 (17:04 -0700)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 7 Sep 2017 00:04:14 +0000 (20:04 -0400)
(cherry picked from commit 8204b903683f9e0f037ccfaa87622716019914d7)

Lib/mimetypes.py

index 9a886803dc1e2a901b99eff00a92ce2b89e7a04d..5a7e6493bf51ff8dee93a9af4abf649a035f73a1 100644 (file)
@@ -439,6 +439,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',