Re: [whatwg/fetch] Error-prone: "Response with null body status cannot have body" (#487)

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