- From: Conrad Irwin <notifications@github.com>
- Date: Mon, 13 Feb 2017 13:38:27 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 13 February 2017 21:38:59 UTC
Hah! My mistake for not including the entire snippet:
```
if (this._xhr.status == 101 || this._xhr.status == 204 || this._xhr.status == 205 || this._xhr.status == 304) {
body = null
} else if (this._xhr.response) {
body = @_xhr.response
} else {
body = @_xhr.responseText
}
```
So in this case it goes wrong because the `responseText` is the empty string, which is not null, and it explodes.
--
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/487#issuecomment-279530767
Received on Monday, 13 February 2017 21:38:59 UTC