This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Default mimetype for javascript should be application/javascript
Type: behavior Stage: resolved
Components: email, Library (Lib) Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: barry, bkabrda, petri.lehtinen, python-dev, r.david.murray
Priority: normal Keywords: patch

Created on 2012-06-27 07:10 by bkabrda, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-correct-default-js-mimetype.patch bkabrda, 2012-06-27 07:10 Correction of the js mimetype review
Messages (3)
msg164126 - (view) Author: Bohuslav "Slavek" Kabrda (bkabrda) * Date: 2012-06-27 07:10
Hi,
when using Python's Lib/mimetypes.py and none of the default files is present, there are some defaults used. For javascript, the default is application/x-javascript. However, according to IANA specification [1], this is not a registered type, and application/javascript should be used (see section 7).
I'm attaching a simple patch that fixes this.


[1] http://www.rfc-editor.org/rfc/rfc4329.txt
msg168689 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-08-20 18:35
New changeset 20985f52b65e by Petri Lehtinen in branch '2.7':
#15199: Fix JavaScript's default MIME type to application/javascript
http://hg.python.org/cpython/rev/20985f52b65e

New changeset b64947b6f947 by Petri Lehtinen in branch '3.2':
#15199: Fix JavaScript's default MIME type to application/javascript
http://hg.python.org/cpython/rev/b64947b6f947

New changeset d4d5cfef5323 by Petri Lehtinen in branch 'default':
#15199: Fix JavaScript's default MIME type to application/javascript
http://hg.python.org/cpython/rev/d4d5cfef5323
msg168690 - (view) Author: Petri Lehtinen (petri.lehtinen) * (Python committer) Date: 2012-08-20 18:37
Fixed, thanks for the patch.
History
Date User Action Args
2022-04-11 14:57:32adminsetgithub: 59404
2012-08-20 18:37:52petri.lehtinensetstatus: open -> closed

nosy: + petri.lehtinen
messages: + msg168690

resolution: fixed
stage: resolved
2012-08-20 18:35:23python-devsetnosy: + python-dev
messages: + msg168689
2012-06-27 13:16:45r.david.murraysetnosy: + barry, r.david.murray
components: + email
2012-06-27 07:10:19bkabrdacreate