New submission from Bohuslav "Slavek" Kabrda <bkab...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15199>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to