{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/falcor-http-datasource/issues/29","labels_url":"https://api.github.com/repos/Netflix/falcor-http-datasource/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/falcor-http-datasource/issues/29/comments","events_url":"https://api.github.com/repos/Netflix/falcor-http-datasource/issues/29/events","html_url":"https://github.com/Netflix/falcor-http-datasource/issues/29","id":124661788,"number":29,"title":"Requests have invalid url encoding","user":{"login":"alexmuro","id":768114,"avatar_url":"https://avatars.githubusercontent.com/u/768114?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmuro","html_url":"https://github.com/alexmuro","followers_url":"https://api.github.com/users/alexmuro/followers","following_url":"https://api.github.com/users/alexmuro/following{/other_user}","gists_url":"https://api.github.com/users/alexmuro/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmuro/subscriptions","organizations_url":"https://api.github.com/users/alexmuro/orgs","repos_url":"https://api.github.com/users/alexmuro/repos","events_url":"https://api.github.com/users/alexmuro/events{/privacy}","received_events_url":"https://api.github.com/users/alexmuro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-03T17:54:41Z","updated_at":"2016-01-29T17:39:00Z","closed_at":"2016-01-29T15:25:40Z","body":"\r\n My falcor router / virtual jsongraph lives inside an AWS Api Gateway endpoint and a lot of the paths generated by my client side falcor-http-datasource don't get routed because the url they generate is invalid because they include {} and \". I end up having to use the following as a work around:\r\n\r\n```\r\nclass CustomSource extends HttpDataSource {\r\n  onBeforeRequest (config) {\r\n    config.url = config.url.replace(/\"/g, \"'\")\r\n    var splitUrl = config.url.split('?')\r\n    config.url = splitUrl[0] + '?' + encodeURI(splitUrl[1])\r\n  }\r\n}\r\n```\r\non the server side I switch back the single and double quotes before parsing the context.\r\n\r\nAll in all, this isn't a big deal but it would be nice if it worked out of the box with stricter URL parsers.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Netflix/falcor-http-datasource/issues/comments/176878186","html_url":"https://github.com/Netflix/falcor-http-datasource/issues/29#issuecomment-176878186","issue_url":"https://api.github.com/repos/Netflix/falcor-http-datasource/issues/29","id":176878186,"user":{"login":"alexmuro","id":768114,"avatar_url":"https://avatars.githubusercontent.com/u/768114?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmuro","html_url":"https://github.com/alexmuro","followers_url":"https://api.github.com/users/alexmuro/followers","following_url":"https://api.github.com/users/alexmuro/following{/other_user}","gists_url":"https://api.github.com/users/alexmuro/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmuro/subscriptions","organizations_url":"https://api.github.com/users/alexmuro/orgs","repos_url":"https://api.github.com/users/alexmuro/repos","events_url":"https://api.github.com/users/alexmuro/events{/privacy}","received_events_url":"https://api.github.com/users/alexmuro/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T17:39:00Z","updated_at":"2016-01-29T17:39:00Z","body":"thanks for the info"}}