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

zcorpan left a comment (whatwg/fetch#1922)

AI re-review at df46626:

> - `fetch.bs:10285-10293`: using extract a MIME type for a part's `Content-Type` matches no browser:
>   - `Content-Type: text` stays `text` in all three; the spec gives "".
>   - `text/html;;x="y"` stays raw in all three; the spec gives `text/html;x=y`.
>   - `text/html, text/plain` gives `text/html` in Chrome and the raw string in Firefox and Safari TP; the spec gives `text/plain`.
>
>   Is that intended?
>
> - `fetch.bs:10256-10273`: nit, `body` goes from a string to a byte sequence partway through. Maybe use a separate variable.
> 
> Possible test additions: a `Content-Type` with a non-ASCII parameter value (should give ""), and junk after padding on a non-final delimiter (`--boundary x\r\n`, should fail).

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

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

Received on Wednesday, 30 September 2026 19:47:43 UTC