{"action":"created","issue":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/352","repository_url":"https://api.github.com/repos/mzabriskie/axios","labels_url":"https://api.github.com/repos/mzabriskie/axios/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/mzabriskie/axios/issues/352/comments","events_url":"https://api.github.com/repos/mzabriskie/axios/issues/352/events","html_url":"https://github.com/mzabriskie/axios/issues/352","id":161465502,"number":352,"title":"Interceptors should be called before the data is transformed","user":{"login":"Cristofori","id":1317242,"avatar_url":"https://avatars.githubusercontent.com/u/1317242?v=3","gravatar_id":"","url":"https://api.github.com/users/Cristofori","html_url":"https://github.com/Cristofori","followers_url":"https://api.github.com/users/Cristofori/followers","following_url":"https://api.github.com/users/Cristofori/following{/other_user}","gists_url":"https://api.github.com/users/Cristofori/gists{/gist_id}","starred_url":"https://api.github.com/users/Cristofori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cristofori/subscriptions","organizations_url":"https://api.github.com/users/Cristofori/orgs","repos_url":"https://api.github.com/users/Cristofori/repos","events_url":"https://api.github.com/users/Cristofori/events{/privacy}","received_events_url":"https://api.github.com/users/Cristofori/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-21T15:19:35Z","updated_at":"2016-06-23T18:06:31Z","closed_at":null,"body":"This issue was introduced in the 0.9.0 release.\r\n\r\n```\r\naxios.interceptors.request.use(function(config) {\r\n  console.log(typeof config.data)\r\n  return config;\r\n})\r\n\r\n...\r\n\r\naxios.post('/some/url/', {foo: 'bar'})\r\n```\r\n\r\nOutput in 0.8.1: 'object'\r\nOuput in 0.9.0+: 'string'\r\n\r\nPrior to 0.9.0 the interceptor would be given the actual JS object that was passed to the `post` method. Now it appears to be passed through `transformData` before the interceptor, forcing users to parse the data from JSON back into a JS object before being able to manipulate it, and then turn it back into a JSON string when returning it."},"comment":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/comments/228133471","html_url":"https://github.com/mzabriskie/axios/issues/352#issuecomment-228133471","issue_url":"https://api.github.com/repos/mzabriskie/axios/issues/352","id":228133471,"user":{"login":"mzabriskie","id":199035,"avatar_url":"https://avatars.githubusercontent.com/u/199035?v=3","gravatar_id":"","url":"https://api.github.com/users/mzabriskie","html_url":"https://github.com/mzabriskie","followers_url":"https://api.github.com/users/mzabriskie/followers","following_url":"https://api.github.com/users/mzabriskie/following{/other_user}","gists_url":"https://api.github.com/users/mzabriskie/gists{/gist_id}","starred_url":"https://api.github.com/users/mzabriskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzabriskie/subscriptions","organizations_url":"https://api.github.com/users/mzabriskie/orgs","repos_url":"https://api.github.com/users/mzabriskie/repos","events_url":"https://api.github.com/users/mzabriskie/events{/privacy}","received_events_url":"https://api.github.com/users/mzabriskie/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T18:06:30Z","updated_at":"2016-06-23T18:06:30Z","body":"You're right, this was broken with #183. Thanks for catching this. Will work on getting a patch out."}}
{"actor":{"display_login":"mzabriskie"}}