{"action":"created","issue":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/458","labels_url":"https://api.github.com/repos/visionmedia/superagent/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/visionmedia/superagent/issues/458/comments","events_url":"https://api.github.com/repos/visionmedia/superagent/issues/458/events","html_url":"https://github.com/visionmedia/superagent/issues/458","id":43983016,"number":458,"title":"How to add custom mime type parsers?","user":{"login":"redonkulus","id":193272,"avatar_url":"https://avatars.githubusercontent.com/u/193272?v=3","gravatar_id":"","url":"https://api.github.com/users/redonkulus","html_url":"https://github.com/redonkulus","followers_url":"https://api.github.com/users/redonkulus/followers","following_url":"https://api.github.com/users/redonkulus/following{/other_user}","gists_url":"https://api.github.com/users/redonkulus/gists{/gist_id}","starred_url":"https://api.github.com/users/redonkulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redonkulus/subscriptions","organizations_url":"https://api.github.com/users/redonkulus/orgs","repos_url":"https://api.github.com/users/redonkulus/repos","events_url":"https://api.github.com/users/redonkulus/events{/privacy}","received_events_url":"https://api.github.com/users/redonkulus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-09-26T00:16:54Z","updated_at":"2015-02-18T23:20:43Z","closed_at":null,"body":"The doc mentions \"Super Agent will parse known response-body data for you, currently supporting application/x-www-form-urlencoded, application/json, and multipart/form-data.\", how do I add my own? \r\n\r\nI found the [parsers/index.js](https://github.com/visionmedia/superagent/blob/717ce9b738a4ff12e0bee0e209b8fb9e013024ba/lib/node/parsers/index.js) file but when adding my own, the response body was still not parsed. Been trying to read through the /lib/node/index.js to see if there are other places that need to be updated.\r\n\r\nAny help or guidance would be appreciated."},"comment":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/comments/74970209","html_url":"https://github.com/visionmedia/superagent/issues/458#issuecomment-74970209","issue_url":"https://api.github.com/repos/visionmedia/superagent/issues/458","id":74970209,"user":{"login":"gechols","id":833661,"avatar_url":"https://avatars.githubusercontent.com/u/833661?v=3","gravatar_id":"","url":"https://api.github.com/users/gechols","html_url":"https://github.com/gechols","followers_url":"https://api.github.com/users/gechols/followers","following_url":"https://api.github.com/users/gechols/following{/other_user}","gists_url":"https://api.github.com/users/gechols/gists{/gist_id}","starred_url":"https://api.github.com/users/gechols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gechols/subscriptions","organizations_url":"https://api.github.com/users/gechols/orgs","repos_url":"https://api.github.com/users/gechols/repos","events_url":"https://api.github.com/users/gechols/events{/privacy}","received_events_url":"https://api.github.com/users/gechols/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T23:20:43Z","updated_at":"2015-02-18T23:20:43Z","body":"I found this thread when I was trying to do the same thing. I found that setting superagent.buffer(true) and then using the response.text worked.\r\nOf course, in my case the content was actually JSON by another name so it was safe to treat it as a string. This may not be the case for binary data."}}