- From: Rhys Evans <notifications@github.com>
- Date: Mon, 24 Aug 2015 03:18:32 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Monday, 24 August 2015 10:19:06 UTC
When a Response is `204` and `response.json()` is called an `unexpected end of input` error is thrown. As the response is already stating that there is no JSON trying to parse it feels wrong. Would it make more sense in this case to either: a) resolve with an empty value b) throw a more informative error e.g. `Cannot parse a response with no content as json` --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/113
Received on Monday, 24 August 2015 10:19:06 UTC