]> 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:58 +0000 (21:28 +0300)
Lib/mimetypes.py
Misc/ACKS
Misc/NEWS

index 4b1e2f945a97577863a06bd1934708fe7fc6a9d2..8ce02f9200b2e63d20db5a79b078b2fd96cc23d8 100644 (file)
@@ -430,7 +430,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 0d851df31344e4763dfc2bae10ccf2cadd4e7693..30505cd005892b2c4bb430f97dcc274acdb3eb6f 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -480,6 +480,7 @@ Jens B. Jorgensen
 Sijin Joseph
 Andreas Jung
 Tattoo Mabonzo K.
+Bohuslav Kabrda
 Bob Kahn
 Kurt B. Kaiser
 Tamito Kajiyama
index 74c168f1c539f1d8180163ec0b182b06f4422b7e..a8b560e8803dd27f14c2d182d13a688e77b9007d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -107,6 +107,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #15199: Fix JavaScript's default MIME type to application/javascript.
+  Patch by Bohuslav Kabrda.
+
 - Issue #13579: string.Formatter now understands the 'a' conversion specifier.
 
 - Issue #15595: Fix subprocess.Popen(universal_newlines=True)