Re: [whatwg/fetch] Define multipart/form-data (PR #1922)

@annevk commented on this pull request.



> +   <li><p>If <var>position</var> does not point to a sequence of bytes starting with 0x2D 0x2D
+   (`<code>--</code>`) followed by <var>boundary</var>, then return failure.
+
+   <li><p>Advance <var>position</var> by 2 + the length of <var>boundary</var>.
+
+   <li><p>Collect a sequence of bytes that are <a>HTTP tab or space bytes</a> given
+   <var>position</var>. (Do nothing with those bytes.)
+
+   <li>
+    <p>If <var>position</var> points to a sequence of bytes starting with 0x2D 0x2D
+    (`<code>--</code>`):
+
+    <ol>
+     <li><p>If <var>position</var> + 2 points to the end of <var>input</var>, or
+     <var>position</var> + 2 points to a sequence of bytes starting with 0x0D 0x0A (CR LF), then
+     return <var>entryList</var>.

Thanks, this uncovered some more issues.

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

Message ID: <whatwg/fetch/pull/1922/review/5156812945@github.com>

Received on Wednesday, 9 September 2026 16:01:51 UTC