From cc1d5b0daa4e65468677f273667616463b8d81cb Mon Sep 17 00:00:00 2001 From: Don Date: Sun, 11 Dec 2022 19:58:03 -0700 Subject: [PATCH] no URI encoding new when creating --- scripts/attachment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/attachment.js b/scripts/attachment.js index a19ba61..7b7385d 100644 --- a/scripts/attachment.js +++ b/scripts/attachment.js @@ -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