djc / couchdb-python

Python library for working with CouchDB
Other
202 stars 86 forks source link

Fix "Database does not exist." on couchdb.version() #304

Closed adrienverge closed 7 years ago

adrienverge commented 8 years ago

At least from version 2.0, it is required to query host:5984/ (not just host:5984) to get the version information:

{"couchdb":"Welcome","version":"2.0.0-RC4","vendor":{"name":"The Apache Software Foundation"}}

If the trailing slash is omitted, it results in an error:

{"error":"not_found","reason":"Database does not exist."}

This patch fixes methods on class Server that omit the trailing slash.

Closes: #303

adrienverge commented 7 years ago

My bad, this error was my fault! (See #303.)