diff --git a/lib/couchrest/core/database.rb b/lib/couchrest/core/database.rb index 825882d..1d2433c 100644 --- a/lib/couchrest/core/database.rb +++ b/lib/couchrest/core/database.rb @@ -107,7 +107,6 @@ module CouchRest # PUT an attachment directly to CouchDB def put_attachment(doc, name, file, options = {}) docid = escape_docid(doc['_id']) - name = CGI.escape(name) uri = url_for_attachment(doc, name) JSON.parse(HttpAbstraction.put(uri, file, options)) end