cujojs / rest

RESTful HTTP client for JavaScript
http://cujojs.com/
Other
1k stars 146 forks source link

responseType: 'arraybuffer' causes 'Failed to read the 'responseText' error #188

Closed Nikitakun closed 5 years ago

Nikitakun commented 6 years ago

When creating a client, if I add responseType: 'arraybuffer' to the mixin property, an exception is thrown after request is done. It goes that on line 127 in xhr.js it 'Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer').' Is there a way to bypass it?

scothis commented 5 years ago

rest.js is no longer maintained