{"action":"created","issue":{"url":"https://api.github.com/repos/jo/couchdb-push/issues/13","labels_url":"https://api.github.com/repos/jo/couchdb-push/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/jo/couchdb-push/issues/13/comments","events_url":"https://api.github.com/repos/jo/couchdb-push/issues/13/events","html_url":"https://github.com/jo/couchdb-push/issues/13","id":104253101,"number":13,"title":"Handle database names with `/` in them","user":{"login":"BigBlueHat","id":43209,"avatar_url":"https://avatars.githubusercontent.com/u/43209?v=3","gravatar_id":"","url":"https://api.github.com/users/BigBlueHat","html_url":"https://github.com/BigBlueHat","followers_url":"https://api.github.com/users/BigBlueHat/followers","following_url":"https://api.github.com/users/BigBlueHat/following{/other_user}","gists_url":"https://api.github.com/users/BigBlueHat/gists{/gist_id}","starred_url":"https://api.github.com/users/BigBlueHat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigBlueHat/subscriptions","organizations_url":"https://api.github.com/users/BigBlueHat/orgs","repos_url":"https://api.github.com/users/BigBlueHat/repos","events_url":"https://api.github.com/users/BigBlueHat/events{/privacy}","received_events_url":"https://api.github.com/users/BigBlueHat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T12:23:21Z","updated_at":"2015-09-01T12:29:54Z","closed_at":null,"body":"Right now, if I give couchdb-push an URL like `http://localhost:5984/mail/bigbluehat-com/byoung` it throws the following error:\r\n\r\n```\r\n...\\node_modules\\couchdb-push\\node_modules\\couchdb-ensure\\index.js:12\r\n  couch.request({\r\n        ^\r\nTypeError: undefined is not a function\r\n```\r\n\r\nIf I escape them, however, things work as they should: `http://localhost:5984/mail%2Fbigbluehat-com%2Fbyoung`\r\n\r\nObviously the escaped version is what CouchDB actually wants, but it'd be nice for the developer to not have to care that much--or go figure out what's needed from that error.\r\n\r\nHaving this as part of the library would save a bunch of URL parsing boilerplate in other people's code too, fwiw.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/jo/couchdb-push/issues/comments/136697403","html_url":"https://github.com/jo/couchdb-push/issues/13#issuecomment-136697403","issue_url":"https://api.github.com/repos/jo/couchdb-push/issues/13","id":136697403,"user":{"login":"jo","id":17586,"avatar_url":"https://avatars.githubusercontent.com/u/17586?v=3","gravatar_id":"","url":"https://api.github.com/users/jo","html_url":"https://github.com/jo","followers_url":"https://api.github.com/users/jo/followers","following_url":"https://api.github.com/users/jo/following{/other_user}","gists_url":"https://api.github.com/users/jo/gists{/gist_id}","starred_url":"https://api.github.com/users/jo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jo/subscriptions","organizations_url":"https://api.github.com/users/jo/orgs","repos_url":"https://api.github.com/users/jo/repos","events_url":"https://api.github.com/users/jo/events{/privacy}","received_events_url":"https://api.github.com/users/jo/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T12:29:54Z","updated_at":"2015-09-01T12:29:54Z","body":"The url id directly passed to [nano](https://github.com/dscape/nano). Do you think also nano would benefit from this enhancement?"}}