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.
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:32 | admin | set | github: 59404 |
| 2012年08月20日 18:37:52 | petri.lehtinen | set | status: open -> closed nosy: + petri.lehtinen messages: + msg168690 resolution: fixed stage: resolved |
| 2012年08月20日 18:35:23 | python-dev | set | nosy:
+ python-dev messages: + msg168689 |
| 2012年06月27日 13:16:45 | r.david.murray | set | nosy:
+ barry, r.david.murray components: + email |
| 2012年06月27日 07:10:19 | bkabrda | create | |