{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/22","labels_url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/22/comments","events_url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/22/events","html_url":"https://github.com/yiisoft/yii2-authclient/issues/22","id":75210271,"number":22,"title":"Binary Data and CONTENT_TYPE_AUTO exception","user":{"login":"friek108","id":8036331,"avatar_url":"https://avatars.githubusercontent.com/u/8036331?v=3","gravatar_id":"","url":"https://api.github.com/users/friek108","html_url":"https://github.com/friek108","followers_url":"https://api.github.com/users/friek108/followers","following_url":"https://api.github.com/users/friek108/following{/other_user}","gists_url":"https://api.github.com/users/friek108/gists{/gist_id}","starred_url":"https://api.github.com/users/friek108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friek108/subscriptions","organizations_url":"https://api.github.com/users/friek108/orgs","repos_url":"https://api.github.com/users/friek108/repos","events_url":"https://api.github.com/users/friek108/events{/privacy}","received_events_url":"https://api.github.com/users/friek108/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T12:46:06Z","updated_at":"2015-05-11T14:21:24Z","closed_at":"2015-05-11T14:21:24Z","body":"I have been using oAuth2 protocol to access Salesforce API's with no problem for json data. However, I am trying to load binary data (blob files) using their api as mentioned here https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_blob_retrieve.htm\r\n\r\nAs stated:\r\n>Document body content is returned in binary form. Note that the response content type will not be JSON or XML since the returned data is binary.\r\n\r\nWhen I try to load this data using this class, I get the following exception thrown as the content type cannot be determined: \r\n``` \r\nif ($contentType == self::CONTENT_TYPE_AUTO) {\r\n      throw new Exception('Unable to determine response content type automatically.');\r\n}\r\n```\r\nAm I going about this the wrong way? Or should there be a way to specify that content type will be raw / binary / blob but should still be accepted by the OAuth2 class?"}}