- From: cybai (Haku) <notifications@github.com>
- Date: Wed, 24 May 2023 05:58:18 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 24 May 2023 12:58:24 UTC
@CYBAI commented on this pull request. > </div> <div algorithm> <p>The <dfn method for=Body><code>formData()</code></dfn> method steps are to return the result of running <a for=Body>consume body</a> with <a>this</a> and the following step given a -<a for=/>byte sequence</a> <var>bytes</var>: switch on <a>this</a>'s <a for=Body>MIME type</a>'s -<a for="MIME type">essence</a> and run the corresponding steps: +<a for=/>byte sequence</a> <var>bytes</var>: + +<ol> +<li><p>Let <var>mimeType</var> be the result of <a for=Body>get the MIME type</a> with <a>this</a>. +<li> + <p>Switch on <var>mimeType</var>'s <a for="MIME type">essence</a> and run the corresponding + steps: As this patch aims to clarify around MIME type here, it sounds good to me to handle this along with this PR! Thanks for catching it! > 1. If _mimeType_ is null, [Throw](https://webidl.spec.whatwg.org/#dfn-throw) a [TypeError](https://webidl.spec.whatwg.org/#exceptiondef-typeerror). > 2. Otherwise, switch on [....] Does this ☝️ sound good to you? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1657#discussion_r1204085884 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1657/review/1441785573@github.com>
Received on Wednesday, 24 May 2023 12:58:24 UTC