]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#15199: Fix JavaScript's default MIME type to application/javascript
authorPetri Lehtinen <petri@digip.org>
Mon, 20 Aug 2012 18:05:56 +0000 (21:05 +0300)
committerPetri Lehtinen <petri@digip.org>
Mon, 20 Aug 2012 18:28:46 +0000 (21:28 +0300)
Lib/mimetypes.py
Misc/ACKS
Misc/NEWS

index 8347786440064e939826ed38cae72bb78f37ecdf..ba4ea8257b660b0f8f1043aed2bc3a06bdfb40c5 100644 (file)
@@ -437,7 +437,7 @@ def _default_mime_types():
         '.jpe'    : 'image/jpeg',
         '.jpeg'   : 'image/jpeg',
         '.jpg'    : 'image/jpeg',
-        '.js'     : 'application/x-javascript',
+        '.js'     : 'application/javascript',
         '.ksh'    : 'text/plain',
         '.latex'  : 'application/x-latex',
         '.m1v'    : 'video/mpeg',
index f13c7b05e08334fb4191e1c1a1c57e51b0cf9409..d8ddd3253589d67d676e58104d46bf5fb8cef674 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -436,6 +436,7 @@ Jens B. Jorgensen
 Sijin Joseph
 Andreas Jung
 Tattoo Mabonzo K.
+Bohuslav Kabrda
 Bob Kahn
 Kurt B. Kaiser
 Tamito Kajiyama
index 34143bfe9742168e9de979c4cb74ab5649a1bdce..895f31f373de6a5a9403a4490dc5ef8b0dde0334 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -95,6 +95,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #15199: Fix JavaScript's default MIME type to application/javascript.
+  Patch by Bohuslav Kabrda.
+
 - Issue #15477: In cmath and math modules, add workaround for platforms whose
   system-supplied log1p function doesn't respect signs of zeros.