Re: [whatwg/fetch] investigate data: URL quoted parameters (#970)

@gibson042 it seems across the board pre-processing and doing a URI encoding allows round tripping to work:

```mjs
fetch(
  `data:application/json;charset=${encodeURIComponent(`"has,comma"`)},0`, {}
).then(
  async r => console.dir({
     contentType: r.headers.get('content-type'),
     body: await r.text()
  })
);
```

this appears to match the recommendation in [RFC2397 section 3](https://tools.ietf.org/html/rfc2397#section-3).

Given that this matches the original RFC and allows round tripping I'm not sure we actually need to do anything.

-- 
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/970#issuecomment-558698112

Received on Tuesday, 26 November 2019 16:04:02 UTC