{"action":"created","issue":{"url":"https://api.github.com/repos/sinonjs/sinon/issues/813","labels_url":"https://api.github.com/repos/sinonjs/sinon/issues/813/labels{/name}","comments_url":"https://api.github.com/repos/sinonjs/sinon/issues/813/comments","events_url":"https://api.github.com/repos/sinonjs/sinon/issues/813/events","html_url":"https://github.com/sinonjs/sinon/pull/813","id":102740332,"number":813,"title":"Add support for arraybuffer, blob responseTypes","user":{"login":"henryptung","id":1700335,"avatar_url":"https://avatars.githubusercontent.com/u/1700335?v=3","gravatar_id":"","url":"https://api.github.com/users/henryptung","html_url":"https://github.com/henryptung","followers_url":"https://api.github.com/users/henryptung/followers","following_url":"https://api.github.com/users/henryptung/following{/other_user}","gists_url":"https://api.github.com/users/henryptung/gists{/gist_id}","starred_url":"https://api.github.com/users/henryptung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryptung/subscriptions","organizations_url":"https://api.github.com/users/henryptung/orgs","repos_url":"https://api.github.com/users/henryptung/repos","events_url":"https://api.github.com/users/henryptung/events{/privacy}","received_events_url":"https://api.github.com/users/henryptung/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sinonjs/sinon/labels/1.x","name":"1.x","color":"bfe5bf"},{"url":"https://api.github.com/repos/sinonjs/sinon/labels/Improvement","name":"Improvement","color":"fbca04"},{"url":"https://api.github.com/repos/sinonjs/sinon/labels/XHR","name":"XHR","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-24T08:48:10Z","updated_at":"2015-11-02T04:14:23Z","closed_at":"2015-08-25T12:28:25Z","pull_request":{"url":"https://api.github.com/repos/sinonjs/sinon/pulls/813","html_url":"https://github.com/sinonjs/sinon/pull/813","diff_url":"https://github.com/sinonjs/sinon/pull/813.diff","patch_url":"https://github.com/sinonjs/sinon/pull/813.patch"},"body":"Based on spec: http://www.w3.org/TR/XMLHttpRequest/\r\n\r\nBinary response types (`arraybuffer`, `blob`) expect binary strings (strings with `charCode`s in the range `0x00`-`0xFF`) in place of normal strings.\r\n\r\nAlign slightly more closely to spec (e.g. `responseText` should be `\"\"`, not `null` when opening an XHR of `text` or unspecified `responseType`; `responseXML` should only be populated when `responseType` is `\"\"` or `\"document\"`, etc.).\r\n\r\nDoes not support browsers that only implement the `BlobBuilder` API (like PhantomJS 1.9.x)."},"comment":{"url":"https://api.github.com/repos/sinonjs/sinon/issues/comments/152908891","html_url":"https://github.com/sinonjs/sinon/pull/813#issuecomment-152908891","issue_url":"https://api.github.com/repos/sinonjs/sinon/issues/813","id":152908891,"user":{"login":"henryptung","id":1700335,"avatar_url":"https://avatars.githubusercontent.com/u/1700335?v=3","gravatar_id":"","url":"https://api.github.com/users/henryptung","html_url":"https://github.com/henryptung","followers_url":"https://api.github.com/users/henryptung/followers","following_url":"https://api.github.com/users/henryptung/following{/other_user}","gists_url":"https://api.github.com/users/henryptung/gists{/gist_id}","starred_url":"https://api.github.com/users/henryptung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryptung/subscriptions","organizations_url":"https://api.github.com/users/henryptung/orgs","repos_url":"https://api.github.com/users/henryptung/repos","events_url":"https://api.github.com/users/henryptung/events{/privacy}","received_events_url":"https://api.github.com/users/henryptung/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T04:14:23Z","updated_at":"2015-11-02T04:14:23Z","body":"Warning: there's been a regression since https://github.com/sinonjs/sinon/issues/875 changed interpretation in arraybuffer/blob mode back to text (rather than binary string). Fix forthcoming, but I'm currently a bit busy; will come back to this in a week or two."}}