zemirco / couchdb

CouchDB client in Go
MIT License
44 stars 14 forks source link

Slashes in DB Names and DocIDs should be escaped #8

Closed ryanjyoder closed 7 years ago

ryanjyoder commented 7 years ago

When using slashes in a database name (or doc_id), the slash needs to be escaped as %2F in the URL. Other special characters may also need to escaped?

I used url.PathEscape to do this, which seems to work... https://github.com/zemirco/couchdb/compare/master...ryanjyoder:handle_slashes_in_names

zemirco commented 7 years ago

sounds right. could you add a test and create a pull request?

zemirco commented 7 years ago

done in https://github.com/zemirco/couchdb/pull/9. thank you!