Re: [whatwg/fetch] Define data: URLs (#579)

annevk commented on this pull request.



> +   <li><p>Remove the code point sequence that is an <a>ASCII case-insensitive</a> match for
+   "<code>;base64</code>" from <var>mimeType</var>.
+  </ol>
+
+ <li><p>If <var>mimeType</var> starts with an <a>ASCII case-insensitive</a> match for
+ "<code>charset;</code>", then prepend "<code>text/plain</code>" to <var>mimeType</var>.
+
+ <li><p>If <var>mimeType</var> is the empty string or is not a
+ <span class=XXX>valid MIME type</span>, then set <var>mimeType</var> to
+ "<code>text/plain;charset=US-ASCII</code>".
+
+ <li><p>Set <var>mimeTypeBytes</var> to <var>mimeType</var> with each code point mapped to a byte of
+ equal value.
+ <!-- See above about a dedicated function. -->
+
+ <li><p>Return <var>mimeTypeBytes</var> and <var>body</var>.

A header value is a byte sequence.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/579#discussion_r133126215

Received on Tuesday, 15 August 2017 06:50:33 UTC