{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6186","repository_url":"https://api.github.com/repos/rethinkdb/rethinkdb","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6186/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6186/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6186/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/6186","id":192153207,"number":6186,"title":"Not possible to modify the url in r.http","user":{"login":"ebr00ks","id":3494911,"avatar_url":"https://avatars.githubusercontent.com/u/3494911?v=3","gravatar_id":"","url":"https://api.github.com/users/ebr00ks","html_url":"https://github.com/ebr00ks","followers_url":"https://api.github.com/users/ebr00ks/followers","following_url":"https://api.github.com/users/ebr00ks/following{/other_user}","gists_url":"https://api.github.com/users/ebr00ks/gists{/gist_id}","starred_url":"https://api.github.com/users/ebr00ks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebr00ks/subscriptions","organizations_url":"https://api.github.com/users/ebr00ks/orgs","repos_url":"https://api.github.com/users/ebr00ks/repos","events_url":"https://api.github.com/users/ebr00ks/events{/privacy}","received_events_url":"https://api.github.com/users/ebr00ks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-29T00:11:29Z","updated_at":"2016-11-29T00:17:46Z","closed_at":"2016-11-29T00:17:46Z","body":"Variables passed to the anonymous containing a r.http request by map are not accessible inside the url parameter and there is no path equivalent to the params options. \r\n\r\n\r\n```\r\nr.expr([111, 222]).map(function(i) {\r\n  return r.http('https://app3.bposerver.com/path.php/dir/'+ i +'.txt', { params: { user: i } });\r\n})\r\n```\r\n\r\nnote _i_ is parsed in the url param as var_16. \r\n```\r\n[\r\n\"{\"path_info\":{\"dirname\":\"\\/dir\",\"basename\":\"var_16.txt\",\"extension\":\"txt\",\"filename\":\"var_16\"},\"get\":{\"user\":\"111\"},\"post\":[]}\" ,\r\n\"{\"path_info\":{\"dirname\":\"\\/dir\",\"basename\":\"var_16.txt\",\"extension\":\"txt\",\"filename\":\"var_16\"},\"get\":{\"user\":\"222\"},\"post\":[]}\"\r\n]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/263437345","html_url":"https://github.com/rethinkdb/rethinkdb/issues/6186#issuecomment-263437345","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6186","id":263437345,"user":{"login":"AtnNn","id":706854,"avatar_url":"https://avatars.githubusercontent.com/u/706854?v=3","gravatar_id":"","url":"https://api.github.com/users/AtnNn","html_url":"https://github.com/AtnNn","followers_url":"https://api.github.com/users/AtnNn/followers","following_url":"https://api.github.com/users/AtnNn/following{/other_user}","gists_url":"https://api.github.com/users/AtnNn/gists{/gist_id}","starred_url":"https://api.github.com/users/AtnNn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtnNn/subscriptions","organizations_url":"https://api.github.com/users/AtnNn/orgs","repos_url":"https://api.github.com/users/AtnNn/repos","events_url":"https://api.github.com/users/AtnNn/events{/privacy}","received_events_url":"https://api.github.com/users/AtnNn/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T00:17:45Z","updated_at":"2016-11-29T00:17:45Z","body":"Native JavaScript operations like `+` do not work Inside ReQL queries when manipulating variables bound by the query.\r\n\r\nInstead, you can use `add` like this:\r\n\r\n```\r\nr.expr('https://app3.bposerver.com/path.php/dir/').add(i).add('.txt')\r\n```"}}
{"actor":{"display_login":"AtnNn"}}