Re: [whatwg/fetch] Allow strings or byte sequences as bodies? (#1073)

Yep, Reporting creates POST requests with bodies -- it sets the MIME type, and provides a byte sequence to Fetch.

The byte sequence used is always the output of https://infra.spec.whatwg.org/#serialize-json-to-bytes, so it could probably use a string just as well, if the Fetch primitive were to be refactored.

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

Received on Monday, 24 August 2020 12:30:41 UTC