lquixada / cross-fetch

Universal WHATWG Fetch API for Node, Browsers and React Native.
MIT License
1.67k stars 104 forks source link

not able to get response when the status is 204 #43

Closed revant117 closed 5 years ago

revant117 commented 5 years ago

When I make an API calls that returns a 204 (No Content) response, Instead of resolving , the promise is rejected with a TypeError: Network request failed error. This should not be the case right. 204 responses should resolve normally only.