dscape/nano — pull request #116 by Ornthalas (2012-11-21 17:01:06+00:00)
Title: Connect URL with pathname in it

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,