Connect URL with pathname in it #116

Merged
merged 1 commit into from Nov 21, 2012

Projects

None yet

2 participants

@efolio

Hi,

My co-worker has got a server with a couchdb server not available from the root (aka "/") web directory but from a subdirectory : something like http://domain.com/_couch/.

I couldn't find a way to connect to the DB using nano since it always tries to extract the DB name from the URL (here trying to connect to a "_couch" database), so I patched the JS file in ordre to do that.

This way, if you specify a "db" attribute in the constructor of the module, nano appends it to the complete URL, instead of trying to extract the DB name from the URL.

Regards,

@dscape dscape merged commit 82811f6 into dscape:master Nov 21, 2012

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment