From 010a535dfdd33dfc8583631e93e7641937c44db4 Mon Sep 17 00:00:00 2001 From: Don Date: Sun, 11 Dec 2022 22:15:12 -0700 Subject: [PATCH] Revert "revert to URI encoding" This reverts commit 67d5644dcec2f96795b1e8372cc86e9c86591a60. --- 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