Skip to content
Permalink
Browse files

Extract a MIME type no longer returns bytes

This aligns with the changes made in whatwg/fetch#831. Fortunately the remainder of the prose already assumed it got a MIME type record rather than bytes.
  • Loading branch information...
annevk committed Nov 13, 2018
1 parent dbbd77c commit cf97f4e614235140f77f91bba77099f66501d89b
Showing with 1 addition and 2 deletions.
  1. +1 −2 xhr.bs
3 xhr.bs
@@ -1280,8 +1280,7 @@ transfer-encoding: chunked</code></pre>
<li><p>Let <var>mimeType</var> be the result of <a for="header list">extracting a MIME type</a>
from <a>response</a>'s <a for=response>header list</a>.

<li><p>If <var>mimeType</var> is the empty byte sequence, then set <var>mimeType</var> to
`<code>text/xml</code>`.
<li><p>If <var>mimeType</var> is failure, then set <var>mimeType</var> to <code>text/xml</code>.

<li><p>Return <var>mimeType</var>.
</ol>

0 comments on commit cf97f4e

Please sign in to comment.
You can’t perform that action at this time.