[whatwg/fetch] Editorial: clarify how to get MIME type for request and response (PR #1657)

Fix https://github.com/whatwg/fetch/issues/1630

---

When the `Request` or `Response` has a `Blob` body with `type` and MIME type exists in its headers, browsers should always return the MIME type in headers instead of the body's type.

However, previously, the spec didn't mention this clearly so this PR will help to clarify by introducing an algorithm of `get the MIME type`.

- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * https://github.com/web-platform-tests/wpt/pull/39489

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1657

-- Commit Summary --

  * Editorial: clarify how to get MIME type for request and response

-- File Changes --

    M fetch.bs (48)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1657.patch
https://github.com/whatwg/fetch/pull/1657.diff

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

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

Received on Thursday, 18 May 2023 09:58:47 UTC