Skip to content

Commit

Permalink
Use a more common serialization for MIME types
Browse files Browse the repository at this point in the history
This is a defense-in-depth for the issues that arised at #84. In theory they are all solved by whatwg/xhr#224, but given how quickly several sites turned up that relied on a space, it seems prudent to standardize on that serialization to avoid similar issues elsewhere.
  • Loading branch information
annevk committed Oct 16, 2018
1 parent dc35803 commit 5fd30bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mimesniff.bs
Expand Up @@ -322,7 +322,7 @@ a <a>valid MIME type string</a> that does not contain U+003B (;).

<p class=example id=example-mime-type-parser-trailing-garbage>Given
<code>text/html;charset="shift_jis"iso-2022-jp</code> you end up with
<code>text/html;charset=shift_jis</code>.
<code>text/html; charset=shift_jis</code>.
</ol>

<li>
Expand Down Expand Up @@ -385,7 +385,7 @@ these steps:
<a for="MIME type">parameters</a>:

<ol>
<li><p>Append U+003B (;) to <var>serialization</var>.
<li><p>Append U+003B (;) followed by U+0020 SPACE to <var>serialization</var>.

<li><p>Append <var>name</var> to <var>serialization</var>.

Expand Down

0 comments on commit 5fd30bd

Please sign in to comment.