Re: [whatwg/fetch] 204 and json (#113)

```js
const r = await fetch('https:...', { method: 'POST', .. });
if (r.ok) {
  const data = await r.json().catch(() => null);
  // ...
}
```

-- 
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/113#issuecomment-611485919

Received on Thursday, 9 April 2020 11:49:59 UTC