Skip to content

MIME type parsing, comments #33

@annevk

Description

@annevk

Both http://searchfox.org/mozilla-central/source/netwerk/base/nsURLHelper.cpp#836 and Chrome source code indicate that the ";(" sequence means something special in MIME types and it looks like parsing is supposed to stop there, due to some legacy MIME type comment feature.

However, when I try something like

HTTP/1.1 200
Content-Length: 55
Content-Type: text/html;test=test;(;charset=gbk

<script>document.write(document.characterSet)</script>

browsers consistently end up not ignoring the charset parameter, so I'm not sure what is going on.

@mcmanus @sleevi help appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions