canjs / can-ajax

jQuery-inspired AJAX request library.
https://canjs.com/doc/can-ajax.html
MIT License
5 stars 7 forks source link

parse rejected response #32

Closed pYr0x closed 6 years ago

pYr0x commented 6 years ago

if the response type is application/json can-ajax should try to parse the response also on rejected promises. https://github.com/canjs/can-ajax/blob/master/can-ajax.js#L189

justinbmeyer commented 6 years ago

sounds good to me

pYr0x commented 6 years ago

@justinbmeyer should i publish a major version? because parsing the rejected response is not backwards compatible