{"action":"created","issue":{"url":"https://api.github.com/repos/twilio/twilio-node/issues/86","labels_url":"https://api.github.com/repos/twilio/twilio-node/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/twilio/twilio-node/issues/86/comments","events_url":"https://api.github.com/repos/twilio/twilio-node/issues/86/events","html_url":"https://github.com/twilio/twilio-node/pull/86","id":69437655,"number":86,"title":"Fix an escaping bug we had","user":{"login":"A-Zak","id":302774,"avatar_url":"https://avatars.githubusercontent.com/u/302774?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Zak","html_url":"https://github.com/A-Zak","followers_url":"https://api.github.com/users/A-Zak/followers","following_url":"https://api.github.com/users/A-Zak/following{/other_user}","gists_url":"https://api.github.com/users/A-Zak/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Zak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Zak/subscriptions","organizations_url":"https://api.github.com/users/A-Zak/orgs","repos_url":"https://api.github.com/users/A-Zak/repos","events_url":"https://api.github.com/users/A-Zak/events{/privacy}","received_events_url":"https://api.github.com/users/A-Zak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-19T15:53:24Z","updated_at":"2015-04-20T16:39:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/twilio/twilio-node/pulls/86","html_url":"https://github.com/twilio/twilio-node/pull/86","diff_url":"https://github.com/twilio/twilio-node/pull/86.diff","patch_url":"https://github.com/twilio/twilio-node/pull/86.patch"},"body":"querystring was changing pluses '+' to spaces ' ' and changing it to qs fixed it for us... :)"},"comment":{"url":"https://api.github.com/repos/twilio/twilio-node/issues/comments/94503685","html_url":"https://github.com/twilio/twilio-node/pull/86#issuecomment-94503685","issue_url":"https://api.github.com/repos/twilio/twilio-node/issues/86","id":94503685,"user":{"login":"kwhinnery","id":29193,"avatar_url":"https://avatars.githubusercontent.com/u/29193?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhinnery","html_url":"https://github.com/kwhinnery","followers_url":"https://api.github.com/users/kwhinnery/followers","following_url":"https://api.github.com/users/kwhinnery/following{/other_user}","gists_url":"https://api.github.com/users/kwhinnery/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhinnery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhinnery/subscriptions","organizations_url":"https://api.github.com/users/kwhinnery/orgs","repos_url":"https://api.github.com/users/kwhinnery/repos","events_url":"https://api.github.com/users/kwhinnery/events{/privacy}","received_events_url":"https://api.github.com/users/kwhinnery/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T16:39:10Z","updated_at":"2015-04-20T16:39:10Z","body":"@skimbrel @A-Zak the reason we are using `querystring` here is because we prefer serializing arrays differently. To work with the Twilio REST API, we need for:\r\n\r\n```javascript\r\nvar params = { MediaUrl: ['foo', 'bar', 'baz'] };\r\n```\r\n\r\nto serialize to\r\n\r\n```\r\nMediaUrl=foo&MediaUrl=bar&MediaUrl=baz\r\n```\r\n\r\n`qs` automatically adds array notation subscript to parameters like this, so the above becomes\r\n\r\n```\r\nMediaUrl[0]=foo&MediaUrl[1]=bar&MediaUrl[2]=baz\r\n```\r\n\r\n@A-Zak can we back up to the original problem (replacing spaces with \"+\") and work a solution from there?"}}