Revert "revert to URI encoding"

This reverts commit 67d5644dce.
This commit is contained in:
Don 2022-12-11 22:15:12 -07:00
parent 67d5644dce
commit 010a535dfd

View file

@ -7,7 +7,7 @@ var Attachment = function (slouch) {
Attachment.prototype.create = function (dbName, docId, attachmentName, data, contentType, rev) {
return this._slouch._req({
uri: this._slouch._url + '/' + encodeURIComponent(dbName) + '/' + encodeURIComponent(
docId) + '/' + encodeURIComponent(attachmentName) + '?rev=' + encodeURIComponent(rev),
docId) + '/' + attachmentName + '?rev=' + encodeURIComponent(rev),
method: 'PUT',
headers: {
'Content-Type': contentType