{"action":"created","issue":{"url":"https://api.github.com/repos/tomas/needle/issues/107","labels_url":"https://api.github.com/repos/tomas/needle/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/tomas/needle/issues/107/comments","events_url":"https://api.github.com/repos/tomas/needle/issues/107/events","html_url":"https://github.com/tomas/needle/issues/107","id":60507808,"number":107,"title":"0.8 cannot post raw body data; works in 0.7","user":{"login":"jconley","id":22428,"avatar_url":"https://avatars.githubusercontent.com/u/22428?v=3","gravatar_id":"","url":"https://api.github.com/users/jconley","html_url":"https://github.com/jconley","followers_url":"https://api.github.com/users/jconley/followers","following_url":"https://api.github.com/users/jconley/following{/other_user}","gists_url":"https://api.github.com/users/jconley/gists{/gist_id}","starred_url":"https://api.github.com/users/jconley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jconley/subscriptions","organizations_url":"https://api.github.com/users/jconley/orgs","repos_url":"https://api.github.com/users/jconley/repos","events_url":"https://api.github.com/users/jconley/events{/privacy}","received_events_url":"https://api.github.com/users/jconley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-10T14:29:14Z","updated_at":"2015-04-10T04:39:37Z","closed_at":null,"body":"this used to work in 0.7.x:\r\n```\r\nvar xml = '<xml>hello</xml>';\r\nrequire('needle').post('http://hostname.com', xml, { headers: { 'Content-Type': 'application/xml' } }, console.log);\r\n```\r\n\r\nbut now in 0.8.x, it tries to parse the text as query params only... and throws:\r\n```\r\nTypeError: Invalid object received:<xml>hello</xml>\r\n    at stringify (./node_modules/needle/lib/querystring.js:16:11)\r\n    at Needle.start (./node_modules/needle/lib/needle.js:280:61)\r\n```\r\n\r\nif this was intended to be a breaking change, it should be documented in CHANGELOG."},"comment":{"url":"https://api.github.com/repos/tomas/needle/issues/comments/91426449","html_url":"https://github.com/tomas/needle/issues/107#issuecomment-91426449","issue_url":"https://api.github.com/repos/tomas/needle/issues/107","id":91426449,"user":{"login":"tomas","id":10574,"avatar_url":"https://avatars.githubusercontent.com/u/10574?v=3","gravatar_id":"","url":"https://api.github.com/users/tomas","html_url":"https://github.com/tomas","followers_url":"https://api.github.com/users/tomas/followers","following_url":"https://api.github.com/users/tomas/following{/other_user}","gists_url":"https://api.github.com/users/tomas/gists{/gist_id}","starred_url":"https://api.github.com/users/tomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomas/subscriptions","organizations_url":"https://api.github.com/users/tomas/orgs","repos_url":"https://api.github.com/users/tomas/repos","events_url":"https://api.github.com/users/tomas/events{/privacy}","received_events_url":"https://api.github.com/users/tomas/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T04:39:37Z","updated_at":"2015-04-10T04:39:37Z","body":"Yes, I'm actually looking into your example and there was a change between 0.7 and 0.8 that made things a bit inconsistent. I'll let you know when I have a better picture."}}