[New-bugs-announce] [issue15199] Default mimetype for javascript should be application/javascript
Bohuslav "Slavek" Kabrda
report at bugs.python.org
Wed Jun 27 09:10:19 CEST 2012
New submission from Bohuslav "Slavek" Kabrda <bkabrda at redhat.com>:
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
----------
components: Library (Lib)
files: python-correct-default-js-mimetype.patch
keywords: patch
messages: 164126
nosy: bkabrda
priority: normal
severity: normal
status: open
title: Default mimetype for javascript should be application/javascript
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file26174/python-correct-default-js-mimetype.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15199>
_______________________________________
More information about the New-bugs-announce
mailing list