[Python-checkins] cpython (2.7): #15199: Fix JavaScript's default MIME type to application/javascript
petri.lehtinen
python-checkins at python.org
Mon Aug 20 20:35:24 CEST 2012
http://hg.python.org/cpython/rev/20985f52b65e
changeset: 78682:20985f52b65e
branch: 2.7
user: Petri Lehtinen <petri at digip.org>
date: Mon Aug 20 21:05:56 2012 +0300
summary:
#15199: Fix JavaScript's default MIME type to application/javascript
files:
Lib/mimetypes.py | 2 +-
Misc/ACKS | 1 +
Misc/NEWS | 3 +++
3 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -437,7 +437,7 @@
'.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',
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -436,6 +436,7 @@
Sijin Joseph
Andreas Jung
Tattoo Mabonzo K.
+Bohuslav Kabrda
Bob Kahn
Kurt B. Kaiser
Tamito Kajiyama
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -95,6 +95,9 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list