no URI encoding new when creating

This commit is contained in:
Don 2022-12-11 19:58:03 -07:00 committed by GitHub
parent f18ad68297
commit cc1d5b0daa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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